--- title: 'Google AIY 2021' disqus: hackmd --- # Google AIY專題 ###### tags: `Project 2021` :::info 編寫教學請參閱: https://hackmd.io/features-tw ::: ## 目錄 [TOC] | Features | Link | | ----------------- |:----------------------- | | Voice Kit Document | [document][aiy document] | | Connect Voice Kit | [Connect Voice Kit][Connect Voice Kit] | | Linux 指令 | [Linux Command][Linux Command] | **注意: connect voice kit 教學上面所設定的憑證是google assistant的而不是cloud speech的** [aiy document]: https://aiyprojects.readthedocs.io/en/latest/voice.html [Connect Voice Kit]: https://aiyprojects.withgoogle.com/voice/#connect [Linux Command]: https://blog.techbridge.cc/2017/12/23/linux-commnd-line-tutorial/ ## 專題進度 ### 實作功能 - [x] 查詢天氣 - [x] 定位 - [x] 查詢附近餐廳 - [x] 播放音樂 - [x] 查詢特定餐廳 - [X] 現在時刻 - [x] 查詢高鐵時刻 ### 待解決問題 * 解決播放音樂時,語音辨識度極差的問題。(使按鈕可讓音樂暫停、播放 來解決此問題) * 播放音樂時,音量會突然爆開。 * 尋找更多關鍵字 * ## 資源 ### 使用套件 | Features | Link | 安裝指令 | | ----------------- |:----------------------- | :----------------| | Python-vlc(播放音樂)| [vlc document][vlc docu] | pip3 install python_vlc | | youtube_dl(播放音樂)| [GitHub][ytd]| pip3 install youtube_dl | | Gtts(文字轉語音) | [GitHub][gtts] | pip3 install gTTS | [ytd]: https://github.com/ytdl-org/youtube-dl [vlc docu]: http://www.olivieraubert.net/vlc/python-ctypes/doc/ [gtts]: https://github.com/pndurette/gTTS ### 參考資料 https://medium.com/@tih/%E4%B8%80%E5%8F%A3%E6%B0%A3%E5%B0%87-voice-kit-%E9%80%A3%E4%B8%8A-google-cloud-platform-%E5%AF%A6%E4%BD%9C%E7%AF%87-55386aafcc56