Your comments

Hi Gil, I checked it and it works brilliant.

Thanks a lot for your effort!

Thank you, Pavel

Hi Gil,

any update on this issue or some ETA when we can expect some explanation or fix?

Thanks,

Pavel

Hello Gil.


I tried to add some logging and also vh_audioStarted/vh_audioEnded callbacks. See the update here https://github.com/dominikbrno/Sitepal-vue/commit/58be85d6e3be81ea514863e4751bc8c839ee0172?diff=split&w=1

Here's the produced log. I've added comments directly to the log.

It doesn't always looks like this, but this is the most common outcome for me.


2024-04-02T09:05:12.038Z: say 1              // first sayText() called
2024-04-02T09:05:12.246Z: vh_audioStarted    // starts speeking after ~200ms
2024-04-02T09:05:16.040Z: stop 1             // stops speaking after ~3800ms, everything ok

2024-04-02T09:05:16.041Z: say 2              // second round, same as first, everything ok
2024-04-02T09:05:16.227Z: vh_audioStarted
2024-04-02T09:05:20.042Z: stop 2

2024-04-02T09:05:20.043Z: say 3              // third sayText() called
2024-04-02T09:05:20.200Z: vh_audioStarted    // starts speeking after ~200ms
2024-04-02T09:05:20.212Z: vh_audioEnded      // but almost immediately this callback fires, in real there's nothing audible
2024-04-02T09:05:24.043Z: stop 3             // stopSpeech() called, but at this time nothing is playing

2024-04-02T09:05:24.043Z: say 4              // fouth iteration, same as first and second
2024-04-02T09:05:24.206Z: vh_audioStarted
2024-04-02T09:05:28.044Z: stop 4

2024-04-02T09:05:28.045Z: say 5              // fifth round, same behaviour as third round, not ok
2024-04-02T09:05:28.207Z: vh_audioStarted
2024-04-02T09:05:28.231Z: vh_audioEnded
2024-04-02T09:05:32.045Z: stop 5


So for me it seems, it's not the case "the delayed stopSpeech call is called after sayText is called, but before the audio starts", you are mentioning.


Could you please try to investigate it more? Or do I miss something?

Also, if there's anything we can help with, please let us know.


Thanks,

Pavel

You guessed it right. The 4 seconds are just to showcase the issue. In real we need to call stopSpeech() on user request. And in that case we don't want to say anything else. 

But we can try what would happen if we call sayText() with empty text and interrupt mode ON. Maybe it will just stop.

Thanks,

Pavel

Hi Gil, I don't won't to rush you, just want to ask if there's any progress in this.

We are facing this issue in few customers' instances, so it's a bit time-sensitive for us.

Thanks.

Pavel

Hi Gil,

I've just tried it and it still works the same.
Could you please check the code I've shared? It should be simply reproducible.

Thank you.

Pavel