Your comments

Hi - Can you please post a link to your page where we can see the problem?

If you prefer - please send the link to support@sitepal.com

Thanx

You need to setup a simple html page on your web server. 

For starters - create a very basic page - 


<html>

<header>

</header>

<body>


Your embed code here


</body>

</html>


Then load that page into your web view.

Once that works, you would then modify the page to address your application needs (whatever they may be).


note: if you will be using dynamic TTS (sayText or sayAIResponse) then you also need to setup the page domain as a licensed domain in your SitePal account.


To do that: open ‘Account Info”. Your licensed domains are listed at bottom left. One of the domain names configured there must be identical to the page URL – if you strip away the
preceding “http://” and any path information. For example –
Browser address line is: http://www.mycompany.com/abcd/index.html
Licensed domain name should be: www.mycompany.com


Hope this helps,

Gil


Hi Orly - it looks like you are trying to load a local file - and that file is not present where your code thinks it should be.. Suggest taking another look at your setup.

That said - I don't think you should be using a local html file at all. You may run into problems with your embedded SitePal scene if loaded into a local file - this is not a supported and tested scenario.


I would suggest to have the html file posted on your web server and loaded from there.

As a first step - try loading one of our support example pages - so for example, load this page:

http://www.oddcast.com/support1/sayAudio.html


If the performance/latency of loading from the web is less than ideal for your app, please note my previous comment - 

If you want the character to be loaded locally (installed with the app) we support that model as well - but under a different license - if that's of interest to you pls send us a note to sales@sitepal.com.


Best,

Gil


Hi Orly - 

You are not using the right embed code.

The embed code you noted here is the old (deprecated) embed code which requires Flash.

Please select the "Standard Web Page" - this will work in HTML5 including on mobile.

Let me know how goes.

Best

Gil 

Hi Orly - can you post a link to your page where the problem is evident? 

This will allow us to review your code and advise. 

Regards

Gil

Yes, It is different.

Login to your account, select the Scene you want to edit, open the editor, and add (assign) an audio to the Scene.

You can add an audio by recording it, or by uploading an audio file, or select from previously added audios found in your audio library. You can also assign multiple audios to the Scene if you like. If you do so one of them will be selected at random.

Doing so does not preclude using the API (to make a call to sayText for example). Note that calling sayText does not 'assign' a different audio to the Scene.

Also note that once an audio is assigned to the Scene you can control whether that audio will be automatically spoken "on load" - in the Scene attributes. (Of course on mobile devices it will never speak on load). This will make it unnecessary for you to call sayText from the vh_sceneLoaded callback.

Hope this helps, please ask if unclear.

Best

Gil

I think you mean "before I embed the Scene" (rather than 'export')

The order does not matter.

You can update/modify your scene at any time and the update is instantly reflected in any page where that Scene is embedded. You need not re-embed.

Hi JNJ -

The Scene in your example does not have an audio assigned to it. Hence there is nothing for it to speak.


You have programmed the character to speak on receiving the vh_sceneLoaded callback. This works fine on the desktop, but not on mobile where the browser blocks audio and video from playing until the user interacts with the page.

However - when the user does "interact with the page" by pressing the play button, it re-plays the audio on the desktop but not on the mobile. Here's why.


The play button logic is as follows - when touched -

1. re-play the last audio played.

2. if no audio was played, play the audio assigned to the Scene.


In this case, on mobile devices, neither condition applies.


Here's a link to one of our API examples that does have an audio assigned to the Scene; this works fine on mobile -

http://www.oddcast.com/support1/replay_stop.html


Hope this helps,

Gil