Adding loop with dialog for continuous input of speech

parent 1ae87d69
......@@ -62,4 +62,18 @@ tts_in = struct();
tts_in.id = 'id_excidea';
tts_in.prepare_text = 'That is an excellent idea!';
tts_in.direct_playback = true;
va.setSignalSourceParameters( X, tts_in )
\ No newline at end of file
va.setSignalSourceParameters( X, tts_in )
while( true )
txt = inputdlg;
if isempty( txt )
break;
end
tts_in = struct();
tts_in.direct_playback = true;
tts_in.prepare_text = txt{1};
if isempty( tts_in.prepare_text )
break;
end
va.setSignalSourceParameters( X, tts_in )
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment