+1
Answered

Text-to-speech widget

DanielB 13 years ago in SitePal Silver updated by Gil 10 years ago 7
I've just signed up for a Silver account. Can I add a Text-to-speech widget to my website? How do I do that?
Hi Daniel -

You can certainly add a sitepal speaking character to your site.
Check out the SitePal video tutorial - it may help. Link available at the top right of the screen when you login to your account.

But when you say "test-to-speech" widget - what do you have in mind? Can you point to an example?

Regards
Gil
SitePal Team
Hi Gil!

I'm talking about the speaking character widget that allows you to to type words and phrases and hear the pronunciation, the same you have in your Facebook page under "Text-to-speech widget" on the left hand menu.

Thank you!
Hi Daniel,

Using our sayText api you can dynamically call Tex-To-Speech. This will enable you to create your own Text-To-Speech widget. Please look at the below example.

http://www.oddcast.com/support/sayTex...

In case you want to have an option for users to select languages and voices, you can have a dropdown menu with the list of languages and voices, and pass the language and voice id's to the api as a JavaScript argument. please look at the below document for more information on the API's.

http://www.oddcast.com/support/docs/v...

Let us know if you have any other questions.
Hi,

​I am trying to implement the text to speak alternative on mobile devices. I understand that the avatar will not work on the mobile device and will be converted into a video which would then be played on the device. The problem I am facing is the video does not have any text. I am using the Javascript API to set the text which the avatar speaks.

​My question is how can i add text to the avatar video ?

​P.S. I have multiple avatars on a page.

​Thanks
Hi Sahil,
The Java Script API commands or Dynamic text will not work on mobile devices.
Currently, all SitePal scenes can be viewed on mobile, as long as they are not part of an interactive application, such as our functional players and AI  feature.
You can add text/voice to the avatar from the Sitepal Editor :-

https://d2r1vs3d9006ap.cloudfront.net/s3_images/1084903/8778-pfilre_inline.jpg?1407395359" src="https://d2r1vs3d9006ap.cloudfront.net/s3_images/1084903/8778-pfilre_inline.jpg?1407395359">


Regards,
Sumit
Hi Sumit,
Thanks for the reply.
We have more than 100,000 instances of the same avatar playing different texts. All I wanted to know was, is there a way of adding some text to that video so all the 100,000 avatars videos work on the phone.

Thanks
Sahil - 
You would need to create 100,000 Scenes and assign the audio to each of them. Then Embed those scenes in the page dynamically.
It is a roundabout way to do it, and not ideal - but it is doable using our Server API.
The Server API (available to Platinum account) allows you to create Scenes, create TTS audio, assign audio to Scenes, and grab the embed code for a selected Scenes. You can accomplish all that via the API.
Your other option is to wait a bit and use our new and about to be launched full body characters. Those characters will  fully support our API on mobile. 
Hope this helps,
Gil