Speech Output Repeated

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
acerzw
Posts: 39
Joined: 10 May 2015 13:38

Speech Output Repeated

Post by acerzw » 19 May 2015 20:23

I have a flow called 'Speak Audio Advisory' which is triggered by the text in a global variable changing, which is then passed to the 'Speech Output' function, however often the text is spoken twice, sometimes three times despite the flow only being called once (as far as I can tell from the log I emailed). changing the audio channel and the focus parameters makes no difference. I have an idea that the processor load/number of flows being executed may be a factor, as depending on which other flow triggers the speech flow seems to consistently affect if the speech is repeated or not. Any idea?
Last edited by acerzw on 20 May 2015 10:45, edited 1 time in total.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Speech Output Repeated

Post by MURTUMA » 20 May 2015 09:05

I had a similar problem some time ago, which was caused by a small mistake in the flow. Maybe you have that too?

Please, post your flow here for error checking.

User avatar
acerzw
Posts: 39
Joined: 10 May 2015 13:38

Re: Speech Output Repeated

Post by acerzw » 21 May 2015 00:57

It turns out that it was a timing issue, the speech flow was being called twice in quick sucession. It appears that when the text variable was changed in order to trigger the speech flow the second time, the first speech flow instance was just starting to execute and so when it got to the 'Speech Output' function, the global variable containing the text to say had been overwritten by the second instance, hence the same speech was output by both instances. I solved the issue by adding a one second sleep delay to the calling flow.

Post Reply