richtier / alexa-voice-service-client

Python Client for Alexa Voice Service (AVS)
MIT License
42 stars 29 forks source link

send text to avs #35

Closed mduzgun closed 5 years ago

mduzgun commented 5 years ago

How to send text to Alexa instead of audio file? Is there any way?

richtier commented 5 years ago

Not that I am aware of. You can, however, send the text to a text to speech service then send hte resulting audio to alexa voice service using this client:

  1. https://console.aws.amazon.com/polly/home/SynthesizeSpeech (select MP3 16000Hz)
  2. convert it to wav: $ffmpeg -i input.mp3 -ar 16000 output.wav
  3. Upload the AVS using this library