title: Google text to speech - SSML breaks missing from mp3 output
body: <p>Am experiencing an issue with SSML tags being 'dropped' when converting base-64 output from Google Text to Speech to an MP3 file.</p>
  
  <p>Platform is OSX 10.12.6.</p>
  
  <p>My syntax seems to be fine and tests OK with other services but, when I convert it through terminal it drops all my SSML.</p>
  
  <p>Have been messing around trying different things for the last 8 hours!</p>
  
  <p>My call to the API is:</p>
  
  <pre><code>curl -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
    -H "Content-Type: application/json; charset=utf-8" \
    --data "{
      'input':{
        'ssml':'&lt;speak&gt;
  First sentence&lt;break time="3s"/&gt;
  Second sentence &lt;break time="300ms"/&gt;&lt;say-as interpret-as="date" format="yyyy" detail="1"&gt;1919&lt;/say-as&gt;&lt;break time="2s"/&gt;
  Third sentence &lt;say-as interpret-as="characters"&gt;send&lt;/say-as&gt; &lt;break time="300ms"/&gt;&lt;say-as interpret-as="date" format="yyyy" detail="1"&gt;2016&lt;/say-as&gt;&lt;break time="2s"/&gt;
  Fourth sentence &lt;say-as interpret-as="cardinal"&gt;10456&lt;/say-as&gt; &lt;break time="300ms"/&gt;&lt;say-as interpret-as="date" format="yyyy" detail="1"&gt;2017&lt;/say-as&gt;&lt;break time="2s"/&gt;
  Fifth sentence &lt;say-as interpret-as="unit"&gt;10 foot&lt;/say-as&gt; &lt;break time="300ms"/&gt;&lt;say-as interpret-as="time" format="hms12"&gt;3:30am&lt;/say-as&gt;&lt;break time="2s"/&gt;
  &lt;/speak&gt;'
      },
      'voice':{
        'languageCode':'en-gb',
        'name':'en-GB-Wavenet-A',
        'ssmlGender':'FEMALE'
      },
      'audioConfig':{
        'audioEncoding':'MP3',
        'pitch': '0',
        'speakingRate': '0.90'
      }
    }" "https://texttospeech.googleapis.com/v1/text:synthesize" &gt; complex-test.txt
  </code></pre>
  
  <p>And then the output is converted to MP3 using:</p>
  
  <pre><code>sed 's|audioContent| |' &lt; complex-test.txt &gt; tmp-output.txt &amp;&amp; \
  tr -d '\n ":{}' &lt; tmp-output.txt &gt; tmp-output-2.txt &amp;&amp; \
  base64 tmp-output-2.txt --decode &gt; complex-test.mp3 &amp;&amp; \
  rm tmp-output*.txt
  </code></pre>
  
  <p>The output is just one rapid fire spoken track with no breaks and none of the SSML tags work.</p>
  
  <p>Any fresh ideas appreciated!</p>
  
  <p>Many thanks.</p>