I have a batch file that has the following statements
aws polly synthesize-speech --output-format mp3 --text-type ssml --voice-id Joanna --text "<speak><prosody pitch='medium' rate='medium'>Test, User, #26</prosody></speak>" temp.mp3
rename temp.mp3 4243.mp3
move /Y 4243.mp3 ./Te
aws polly synthesize-speech --output-format mp3 --text-type ssml --voice-id Joanna --text "<speak>Francis Goldney</speak>" temp.mp3
rename temp.mp3 3035.mp3
move /Y 3035.mp3 ./Fr
The command prompt looks like this.
Note that the temp.mp3 was created. It just stops running after that.
I tried checking %errorlevel%
and it was 0
Edit
Now without screenshot
D:\sites\xxxx.com\beta\scheduler\polly\media>_polly.bat
D:\sites\xxxx.com\beta\scheduler\polly\media>del temp.mp3
D:\sites\xxxx.com\beta\scheduler\polly\media>aws polly synthesize-speech --output-format mp3 --text-type ssml --voice-id Joanna --text "<speak><prosody pitch='medium' rate='medium'>Test, User, #26</prosody></speak>" temp.mp3
audio/mpeg 15
End of processing
It turned out it was not the aws polly that was the problem. It was the move operation. When the file was created via aws polly, there was not enough permission to move it.
This issue was solved when I just created the file in the target location and not try move it after creating it.