跳到主要内容

Google

Cloud service

Photo

Driver

https://github.com/dsoprea/GDriveFS

pip install gdrivefs
gdfstool auth -u
gdfstool auth -a /var/cache/gdfs.creds "$CODE"

# linux 使用 -o big_writes 可提升速度
gdfs -o allow_other /var/cache/gdfs.creds /mnt/gdrivefs

Voice

brew install sox
# 记录
rec -r 16000 -c 1 record.flac
# 识别
# rate=8000, 16000, 32000 and 44100
# lang=en_US,zh_CN...
wget -q --post-file record.flac --header="Content-Type: audio/x-flac; rate=16000" -O - "https://www.google.com/speech-api/v2/recognize?client=chromium&lang=en_US&key=$GOOGLE_SPEECH_API_KEY"

wget -q -U Mozilla -O output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=你好么&tl=zh_CN"

HN - spinner

Calender