overvolt

Tutorial Google Assistant

Jun 3rd, 2017
932
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. Per registrare i 5 secondi di audio di prova:
  2.  
  3.  
  4. arecord --format=S16_LE --duration=5 --rate=16k --file-type=raw out.raw
  5.  
  6. ################################################################################
  7.  
  8. Nel file di configurazione audio:
  9.  
  10.  
  11. pcm.!default {
  12. type asym
  13. capture.pcm "mic"
  14. playback.pcm "speaker"
  15. }
  16. pcm.mic {
  17. type plug
  18. slave {
  19. pcm "hw:<card number>,<device number>"
  20. }
  21. }
  22. pcm.speaker {
  23. type plug
  24. slave {
  25. pcm "hw:<card number>,<device number>"
  26. }
  27. }
  28.  
  29. ################################################################################
  30.  
  31. Comando lunghissimo per caricare le chiavi di cifratura:
  32.  
  33. google-oauthlib-tool --client-secrets /home/pi/client_secret_client-id.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless
Add Comment
Please, Sign In to add comment