0
Answered

Text to speech with sayText() and the apostrophe character ' (reserved?)

François 7 years ago updated by Gil Sideman 6 years ago 17

Hello,
I use, for example, the expression sayText(' Bonjour ',4,4,4),sayText(' je m appelle François')
The character ' is therefore a reserved character.
For example, I replace  "je m'appelle l'avatar"  with "je m appelle l avatar"  but the reading by the avatar is not always fluid.
How to replace this reserved character apostrophe '  in the texts to be read ?
cordially
François


*******************************************************************************************************

Bonjour,

J'utilise par exemple l'expression sayText(' Bonjour ',4,4,4),sayText(' je m appelle François')

Le caractère ' est donc un caractère réservé.

Je remplace par exemple "je m'appelle l'avatar" par  "je m appelle l avatar" mais la lecture par l'avatar n'est toujours fluide.

Comment remplacer ce caractère réservé apostrophe  ' dans les textes à lire ?

Cordialement

François


Under review

Hello François,

We have the same "single quote" character in English words as well.

I think the solution is to use "double quotes" to bracket the text parameter.


So instead of 

sayText('je m'appelle l'avatar',4,4,4)  

use

sayText("je m'appelle l'avatar",4,4,4)  


let me know if that works for you.

Regards

Gil


I see the problem. If you assign the same text to a variable, and pass the variable, it works fine,

We're looking into it - will advise.

Regards

Gil

Hello Gil,


I tested the ASCII 34  character (double quote) as the Saytext()  separator


It does not work. 


I sent you an Email with the HTML code of an object that works with SAYTEXT ('hello') but not with SAYTEXT ("hello") (test our URL)


Regards
François

***************************************************************

J'ai testé le caractère ASCII 34 double quote comme séparateur de Saytext().

Cela ne fonctionne pas. Je vous ai adressé un Email avec le code HTML d'un objet qui fonctionne avec SAYTEXT(' hello ') mais non avec SAYTEXT(" hello " )

Cordialement
François


Hello François - 

Here is an example page that uses French text with the apostrophe character - and it seems to work just fine - perhaps I have misunderstood. Please take a look and let me know - if you see the problem perhaps try to explain it again. I used the text that you described earlier -   "je m'appelle l'avatar"

It works fine - 


http://www.workboy.com/gil/temp/ttstest.html


Regards

Gil

Is the separator not the ASCII 34 character code?

I looked for examples of saytext ("xxx") without finding anyone.

http://vhost.oddcast.com/support/examples/API/sayMultipleText/index.html 


http://vhost.oddcast.com/support/examples/practical_examples/JavaScript/FAQ/index.html


1 - "london bridge is falling down"      


becomes   >   sayText('london bridge is falling down',1,1,3);


Hello Gil,


Your link http://www.workboy.com/gil/temp/ttstest.html works perfectly but it is in version V2.


With the version V3 that I use exclusively (for avatars full body), when I enter sayText("je m'appelle l'avatar",1,4,3);  in function vh_sceneLoaded () { , nothing happens: the avatar does not read any text.
cordially
François


*********************************

Bonjour Gil,


Votre lien http://www.workboy.com/gil/temp/ttstest.html fonctionne parfaitement mais il est en version V2.


Avec la version V3 que j'utilise exclusivement pour les avatars full body, quand je saisis  sayText("je m'appelle l'avatar",1,4,3);  dans la fonction function vh_sceneLoaded(){

rien ne se passe : l'avatar ne prononce aucun texte.

Cordialement

François


 

Bonjour François - 


We are aware of a problem with the full body character where the callback function vh_sceneLoaded is not called. 

This problem was recently introduced (was missed when we deployed a bug fix update last week). 

A fix for this problem is currently being tested and will be deployed in the next few days.


So the problem is not with the function call to sayText, or with the TTS itself, it is only with the automatic initiation of speech when the page is loaded. 


Here is a corresponding full body example - click on the link below the character to hear it speak - 

http://www.workboy.com/gil/temp/ttstestFB.html


Regards,

Gil

Hello Gil,
Have you tested http://www.workboy.com/gil/temp/ttstestFB.html on Internet Explorer 11?
This gives (indefinitely)  :


That's why I do not use sayText ("my name is the avatar", 1,4,3); In the function vh_sceneLoaded () {
But in <a href = "javascript: sayText (" my name is the avatar ", 1,4,3);"
And this works on I.E.  11!
Okay, it's very complex!
cordially


François


**********************************************

Bonjour Gil,
Avez vous testé http://www.workboy.com/gil/temp/ttstestFB.html sur Internet Explorer 11?
Cela donne ceci (indéfiniement) :

C'est la raison pour laquelle je n'utilise pas sayText("je m'appelle l'avatar",1,4,3); dans la function vh_sceneLoaded(){
mais dans <a href="javascript:sayText("je m'appelle l'avatar",1,4,3);"
et cela fonctionne alors sur IE 11 !
D'accord, c'est très complexes !
Cordialement
François

Thanx for the additional info.

We're looking into it.

Bonjour François,

The problem where the callback function vh_sceneLoaded is not called for full body characters has been fixed.

The problem with IE11 where in some cases the text is not spoken for full body characters is being investigated.

Regards

Gil

Hello Gil,


<a href = "javascript: sayText ("J'adore Sitepal", 4,4,4) still does not work ! 
cordially


François


**************************************************

Bonjour Gil, 


<a href="javascript:sayText("J'adore Sitepal",4,4,4); ne fonctionne toujours pas !

Cordialement 

François


Hello François - 


We think the problem is a syntax issue in your code - you can't use double quotes within double quotes. Changing the internal quotes to single quotes, and escaping the lone apostrophe fixes the problem.

See this example, and click on "Click here to say something" - 

http://www.workboy.com/gil/temp/ttsdemo.html


Hope this helps,

Gil

Hi Gil,

With string substitution, it does not work.


If I use javascript: sayText ("AAAAA", I get by hovering over the link:


If I use javascript: sayText ('AAAAA', I get by hovering over the link:



So I think there is a bug in the recognition of tag characters in the chain "AAAAA" with character "


Codialement
françois

******************************

Bonjour Gil,

Avec la substitution de chaines, cela ne fonctionne pas.
Si j'utilise javascript:sayText("AAAAA", j'obtiens en survolant le lien:

Si j'utilise javascript:sayText('AAAAA', j'obtiens en survolant le lien:

Je pense donc qu'il existe un bug dans la reconnaissance des caractères de balise dans la chaine.

Codialement
françois

hello  Gil and Congratulations,


"javascript:sayText('J\'adore Sitepal',4,4,4);"  works very well with very fluent language ...


but:
"javascript:sayText('J\'adore Sitepal',4,4,4),sayText('C\'est incroyable',4,4,4),sayText('j\'aime c'est tout !',4,4,4);"
does not work. Why ?

Thank you


François


**************

Rebonjour Gil et Félicitations


"javascript:sayText('J\'adore Sitepal',4,4,4);" fonctionne très bien avec un langage très fluide...


mais:

"javascript:sayText('J\'adore Sitepal',4,4,4),sayText('C\'est incroyable',4,4,4),sayText('j\'aime c'est tout !',4,4,4);"

ne fonctionne pas. Pourquoi ?


Merci 

François


Hello Gil,
I had to write "javascript:sayText('J\'adore Sitepal',4,4,4),sayText('C\'est incroyable',4,4,4),sayText('j\'aime c\'est tout !',4,4,4);"
Everything works perfectly...
Your team does a great job !


cordially
François


**********

Bonjour Gil

Il fallait écrire "javascript:sayText('J\'adore Sitepal',4,4,4),sayText('C\'est incroyable',4,4,4),sayText('j\'aime c\'est tout !',4,4,4);"

Tout marche à merveille.

Votre équipe réalise un travail formidable ! 

Cordialement

François