Skip to content

Instantly share code, notes, and snippets.

@ueki-kazuki
Created March 9, 2017 01:58
Show Gist options
  • Save ueki-kazuki/79892b5576e508c8aaccf3a4b89c72e0 to your computer and use it in GitHub Desktop.
Save ueki-kazuki/79892b5576e508c8aaccf3a4b89c72e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
for voice in Mizuki Joanna
do
mkdir -p ${voice}
echo ${voice}
for f in sample*.xml
do
fn=${f%%.*}
echo $fn
aws polly synthesize-speech \
--text file://${f} \
--voice-id ${voice} \
--output-format mp3 \
--text-type ssml \
"${voice}/${fn}.mp3"
done
done
<speak>Hello <break time='300ms'/> World</speak>
<speak><prosody volume='+20dB'>Hello world</prosody></speak>
<speak><prosody pitch='x-high'>Hello world</prosody></speak>
<speak><prosody rate='x-fast'>Hello world</prosody></speak>
<speak><emphasis level='strong'>Hello</emphasis> world how are you?</speak>
<speak>Today is <say-as interpret-as='date' format='dm' >4/6</say-as></speak>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment