简体   繁体   中英

Sending voice command automatically to google home

I want to test how Google Home transforms vocal commands to text by sending voice commands and storing the result returned. I have already done the storage part, but now, I can't find in the documentation how to send automatically voice commands to google home, the only apparent way is to speak to it directly, which not very practical if you want to test a long list of commands, 50 times for each command!

Edited: To make it clearer, I want to write a function that sends voice files (mp3, or any other format) to google assistant, instead of having to say/pronounce the command in a human way.

Do you know if it is possible to make this process automatic ?

It sounds like you might want the Assistant SDK , which will let you send an audio stream/file or text to be processed by the Assistant and return the result.

You're unclear about exactly what you're trying to do, and how you're trying to do it, but this table should help you understand what features are available for the various methods of using the Assistant SDK. In general, you'll be able to send an audio file or stream (either using the python library or a gRPC library for your language of choice) and get a response back.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM