Python: Can you directly pass an audio file as user input command to Google Assistant SDK?
py -m googlesamples.assistant.grpc.pushtotalk --device-id "your device id" --device-model-id "your device model" -i "your_sound_file.wav"'
this will not wait for you to play a file, it will send the file and exeute and exit. but anyways, I had went to a website, can't remember which, but it would generate wav files of whatever you wanted. I did "turn on the porch light". Now I have a script that loops infinitely, checks if it can ping my cell phone on my home network, and if it detects its arrival, and it is between 7pm and 7am, it will turn on the porch light for me automatically. The only thing I have a problem with is, I do not need to hear the assistants voice. I wish there was a way to send an arg that muted assistant responses for the current "conversation". I use nircmd, copied to system32 folder in windows, to get around this though and I set the volume to 0, then do the assistant thing, then set the volume back to 20%. Works pretty good.
Google Assistant SDK: My user input is always constant, meaning same user command all the time, so instead of asking the user to everytime record a voice commandvia a device microphone, I want to have the user press a button and execute the command by passing a pre-recorded audio file as input. Is that possible with the Google assistant SDK? Preferably in Python as I want to built an API endpoint around it
Any links, blogs, tutorials, samples etc would be very helful