Cannot get the audio tag to work. Have tried it with both a local and remote mp3 files.
Here is the text:
<speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/10/synthesis http://www.w3.org/TR/speech-synthesis11/synthesis.xsd" xml:lang="en-GB">
The rain in Spain stays mainly in the plain.
<audio src="uhm_male.mp3" /> {If I take this out everything works)
How kind of you to let me come.
</speak>
Anybody got any suggestions?
Hi @StevenLMeyer,
Welcome back to Google Cloud Community.
It appears that you are attempting to use an SSML document with the HTML5 audio element. However, text-to-speech systems cannot use the audio element since it is not supported by SSML. You try to utilize a text-to-speech service or program to produce the audio file separately if you're attempting to create an audio file that contains the spoken text, and then incorporate it into your web page using the HTML5 audio element. JavaScript can also be used to play the audio file whenever a user clicks a button or otherwise engages with your website.
As an alternative, you can send the audio file to a speech-to-text service and get the transcription in text format if you're utilizing one of such services to transcribe audio. The text can then be utilized as necessary on your website.
Here are some documentation that might help you:
https://cloud.google.com/text-to-speech/docs/ssml?_ga=2.112080452.-1392753435.1676655686
https://cloud.google.com/text-to-speech/docs/ssml-tutorial?_ga=2.112080452.-1392753435.1676655686
hi, had the same issue.
1. create a bucket, then upload the file.
2. click on the permissions tab.
3. click on add principle, and search for "allusers" add it.
4. then click on assign roles, search for "Storage Object Viewer" add it, then click save
ex:
1. create a buck
2. upload file
3. click on permission tab, grant access
4. in new principle tab search for "allusers", then click add it.
4. in assign roles find Storage Object Viewer add it and save. you should be all set.
example:
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |