Skip to content

Instantly share code, notes, and snippets.

@MITSUBOSHI
Last active July 18, 2017 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MITSUBOSHI/d431a2fb62b28453c4c157dfddc6c1c5 to your computer and use it in GitHub Desktop.
Save MITSUBOSHI/d431a2fb62b28453c4c157dfddc6c1c5 to your computer and use it in GitHub Desktop.
ラジオ伊集院光「深夜の馬鹿力」をIBM Watson Speech to Textでテキスト化してみた ref: http://qiita.com/MITSUBOSH/items/29718f6b209fc8df45a6
brew install youtube-dl
youtube-dl -F https://youtu.be/QxjL1ygSDNc
youtube-dl -f140 https://youtu.be/QxjL1ygSDNc
brew install ffmpeg
ffmpeg -i "podcast-ep186.mp3" -vn -vn -ac 2 -ar 44100 -ab 256k -acodec wav -f wav "output.wav"
ffmpeg -i output.wav -f segment -segment_time 60 -c copy out%04d.wav
curl -X POST -u $WATSON_USERNAME:$WATSON_PASSWORD\
--header "Content-Type: audio/wav" \
--data-binary "@${file}" \
"https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?timestamps=true&model=ja-JP_BroadbandModel"
cat result.json | jq '.results[].alternatives[].transcript' | tr -d '"' > sorted_result.txt
うん 音 を
三 〇 YAHOO 知恵袋 便利な サイト です けれども D_エー ます ので
全て の 質問 を して いる
せっかく の D_エート を サイト に
D_エー 目 を 北
そやから 耐えられる こと で エクソダス 百 十 五条 の 約 束 グローバル 送って 下さい と いう もの です
D_エー 部長 最終 も クソ みたいな 質問 は こちら
うーん うーん うーん なし 四年目
そろそろ 中世 中山 さん
お久しぶり です
英文 費用 節約 の ため 印鑑 を 買って インド 覚え させた もの です
飼い始めて 一カ月 ほど は いい あんばい でした
しかし
エサ代 が バカ に ならない
(後略)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment