0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Google AIY Voice Kit APIs

Posted at

AIY Voice Kitは、Raspberry PiとVoice Bonnet(またはV1 Voice Kitを使用している場合はVoice HAT)で構築された、自分でできるインテリジェントスピーカーです。

キットを組み立てて付属のデモを実行すると、独自のソフトウェアとハードウェアでキットを拡張できます。

微信截图_20181109141751.png

APIモジュール

Googleアシスタントと対話し、音声をテキストに変換し、Voice Kitで他のアクションを実行するために、システムイメージには、Voice Kit用に設計された以下のモジュールを含むaiy Pythonライブラリが含まれます。

aiy.assistantGoogle Assistant APIとの対話を簡素化するモジュールのコレクション。
aiy.cloudspeechGoogle Cloud Speech-to-Textサービスとのやり取りを簡素化するAPI。
aiy.voice.audio:オーディオファイルを記録および再生するためのAPI。
aiy.voice.tts:テキスト読み上げを実行するAPI。
aiy.board:ボイスボンネットのボタンコネクタに接続されているボタンを使用するAPI。
aiy.leds:ボタンのLEDやプライバシーLEDなど、特定のLEDを制御するAPI。
aiy.pinsgpiozeroで使用するための、ボンネットの追加のGPIOピンのピン定義。

V2 Bonnetハードウェア

V2 Voice Kitには、次のVoice Bonnetハードウェアが含まれています。

Audio Codec:ALC5645 [I2Cアドレス:0x1A]
MCU:ATSAMD09D14 [I2Cアドレス:0x52]
LEDドライバー:KTD2027B [I2Cアドレス:0x31]
Crypto(optional):ATECC608A [I2Cアドレス:0x62]
マイク:SPH1642HT5H-1 x 2

ドライバー

MCUドライバー:modinfo aiy-io-i2c
MCU PWMドライバー:modinfo pwm-aiy-io
MCU GPIOドライバー:modinfo gpio-aiy-io
MCU ADCドライバー:modinfo aiy-adc
LEDドライバー:modinfo leds-ktd202x
ブザー用ソフトウェアPWMドライバー:modinfo pwm-soft
サウンドドライバー:modinfo rl6231 rt5645 snd_aiy_voicebonnet

ピン配列(40ピンヘッダー)

       3.3V --> 1    2 <-- 5V
                3    4 <-- 5V
                5    6 <-- GND
                7    8
        GND --> 9   10
                11  12 <-- I2S_BCLK
                13  14 <-- GND
                15  16 <-- BUTTON_GPIO (GPIO_23)
       3.3V --> 17  18
                19  20 <-- GND
                21  22 <-- LED_GPIO (GPIO_25)
                23  24
        GND --> 25  26
     ID_SDA --> 27  28 <-- ID_SCL
                29  30 <-- GND
                31  32
                33  34 <-- GND
  I2S_LRCLK --> 35  36 <-- AMP_ENABLE
                37  38 <-- I2S_DIN
        GND --> 39  40 <-- I2S_DOUT

V1 HATハードウェア

V1 Voice Kitには、次のVoice HATハードウェアが含まれています。

オーディオアンプ:MAX98357A
マイク:ICS-43432 x 2

ドライバー

googlevoicehat-codec.c
googlevoicehat-soundcard.c
googlevoicehat-soundcard-overlay.dts

手動オーバーレイロード:

sudo dtoverlay googlevoicehat-soundcard

ブートごとにオーバーレイをロードします:

echo "dtoverlay=googlevoicehat-soundcard" | sudo tee -a /boot/config.txt

ピン配列(40ピンヘッダー)

       3.3V --> 1    2 <-- 5V
    I2C_SDA --> 3    4 <-- 5V
    I2C_SCL --> 5    6 <-- GND
                7    8
        GND --> 9   10
                11  12 <-- I2S_BCLK
                13  14 <-- GND
                15  16 <-- BUTTON_GPIO (GPIO_23)
       3.3V --> 17  18
                19  20 <-- GND
                21  22
                23  24
        GND --> 25  26
     ID_SDA --> 27  28 <-- ID_SCL
                29  30 <-- GND
                31  32
                33  34 <-- GND
  I2S_LRCLK --> 35  36
                37  38 <-- I2S_DIN
        GND --> 39  40 <-- I2S_DOUT

トラブルシューティング

Voice Kitヘルプを参照してください.(https://aiyprojects.withgoogle.com/help#voice-kit)

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?