[의식의 흐름] 라즈베리파이 3에서 구글 어시스턴트를 이용해보자 #2


의식의 흐름이 끊겼.....었나봐요
아무 기억도 안납니다 ㅋㅋㅋ
그래서 지난 블로그를 다시 봅니다.

Refresh

일단 python venv를 다시 불러오고
$ source env/bin/activate

인증까지 받았었군요. 인증파일이 있나 확인해봅니다.

$ ll ~/.config/google-oauthlib-tool/credentials.json
-rw-r--r-- 1 pi pi 330 Aug 24 14:52 /home/pi/.config/google-oauthlib-tool/credentials.json



Bluetooth 연결 확인 via terminal
라즈베리에 hdmi 연결하는게 귀찮아서 terminal에서 확인해보고 싶어졌습니다. 지난번에 블투만 켜면 바로 잘 연결되는 것을 확인했으니 되었는지 확인해보고 싶어서요.

hcitool 을 쓰라는 군요

 $ hcitool  
 hcitool - HCI Tool ver 5.23  
 Usage:  
      hcitool [options] <command> [command parameters]  
 Options:  
      --help     Display help  
      -i dev     HCI device  
 Commands:  
      dev      Display local devices  
      inq      Inquire remote devices  
      scan     Scan for remote devices  
      name     Get name from remote device  
      info     Get information from remote device  
      spinq     Start periodic inquiry  
      epinq     Exit periodic inquiry  
      cmd      Submit arbitrary HCI commands  
      con      Display active connections  
      cc      Create connection to remote device  
      dc      Disconnect from remote device  
      sr      Switch master/slave role  
      cpt      Change connection packet type  
      rssi     Display connection RSSI  
      lq      Display link quality  
      tpl      Display transmit power level  
      afh      Display AFH channel map  
      lp      Set/display link policy settings  
      lst      Set/display link supervision timeout  
      auth     Request authentication  
      enc      Set connection encryption  
      key      Change connection link key  
      clkoff     Read clock offset  
      clock     Read local or remote clock  
      lescan     Start LE scan  
      lewladd     Add device to LE White List  
      lewlrm     Remove device from LE White List  
      lewlsz     Read size of LE White List  
      lewlclr     Clear LE White list  
      lecc     Create a LE Connection  
      ledc     Disconnect a LE Connection  
      lecup     LE Connection Update  
 $ hcitool con  
 Connections:  
 $ hcitool con  
 Connections:  
      > ACL 00:1A:7D:D1:15:35 handle 11 state 1 lm MASTER AUTH ENCRYPT   


끊어놓고 hcitool con 해보니 아무것도 안나왔다가 켜놓고 해보니 정보가 나옵니다. 굿

진짜로 Google Assistant 써보기

http://www.makewith.co/page/project/1088/story/2726/
위 블로그로 돌아가서 해보니 뭔가 아래처럼 나오는데 반응은 없네요.
마이크로 말을 해야하나? 블루투스 마이크를 살려야하나?

 $ ./pushtotalk.sh   
 INFO:root:Connecting to embeddedassistant.googleapis.com  
 Press Enter to send a new request...  
 INFO:root:Recording audio request.  
 INFO:root:End of audio request detected  
 INFO:root:Finished playing assistant response.  
 Press Enter to send a new request...  

쿠쿵....라즈베리가 아직 bluetooth microphone을 지원하지 않나봅니다???

https://www.raspberrypi.org/forums/viewtopic.php?t=148832

맨붕...

라즈베리파이에서 동작하는 usb 마이크가 있나봅니다.
구매를 고려해봐야겠네요..

인증된 라즈베리파이 usb 마이크 목록입니다.
이중에서 잘 골라서 하나 사야겠네요.
http://elinux.org/RPi_VerifiedPeripherals#USB_Sound_Cards


결론


라즈베리파이는 블루투스 마이크가 동작하지 않는다.
USB 마이크를 써야한다. 주문 완료.


댓글

이 블로그의 인기 게시물

WSL2 Ubuntu 20.04 및 네트워크 설정

리눅스 멀티코어를 사용하는 tar 압축/해제

git pull 을 했더니 branch가 갈라지는 경우