Skip to content

Instantly share code, notes, and snippets.

@argrath
Last active July 24, 2018 12:08
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 argrath/926c0e72a64babc6b62e7f2e0d60542e to your computer and use it in GitHub Desktop.
Save argrath/926c0e72a64babc6b62e7f2e0d60542e to your computer and use it in GitHub Desktop.
* mDNSで相手を検索(mDNSを使うのはIPを知ることまで)
* SSLで接続
* 特定のコマンド列をProtoBufでシリアル化して送信
* コマンドは「話すべきmp3データとかのURL」を送るのでhttpサーバが必要
* 動的生成するならそこの考慮が必要
https://qiita.com/vanx2/items/3c20bf8e4111da9eb68d
https://prozorec.hatenablog.com/entry/2017/06/07/093638
https://github.com/thibauts/node-castv2-client
https://github.com/thibauts/node-castv2#protocol-description
https://metacpan.org/pod/Google::ProtocolBuffers
## 音声をどうする
https://github.com/zlargon/google-tts
wav(とか)を返すURLが返るのでそれをcastに渡す
VoiceText Web API
https://cloud.voicetext.jp/webapi/docs/api
評判がいい?
https://www.sevencredit.com/2018/02/07/834/
http://satoshi-maemoto.hatenablog.com/entry/2018/05/12/082525
## Perl+WindowsでmDNS
* IO::Socket::Multicastの出力先指定はWindowsでは働かない
* IO::InterfacesがWindowsで働かないから
Cのサンプルはあるのでこれの通りにPerlでやれば動くはず
http://www.geekpage.jp/programming/linux-network/multicast-2.php
## VoiceTextを送る
引数が違うのでそのまま指定はできない
* 一旦テンポラリファイルを作る
* proxyでリクエストを変換する
https://metacpan.org/pod/HTTP::Proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment