Speech Output Repeated
Moderator: Martin
Speech Output Repeated
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.
Re: Speech Output Repeated
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.
Please, post your flow here for error checking.
Re: Speech Output Repeated
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.