所以,类似主题的问题:“如何在语音调度程序中使用索引标记?” 我听到很多关于它的消息,但找不到任何关于如何在 SPD_MODE_THREADED 中使用它的教程。主要问题是当您发送“SPEAK”命令时,您无法将数据模式更改为 SPD_DATA_SSML。而且我认为我做错了什么。所以,谁知道如何使用这个索引标记,教程也很容易接受。谢谢!
问问题
129 次
1 回答
1
已解决,这是在语音调度程序中设置索引标记的方法:
pthread_mutex_lock( m_connection->ssip_mutex );
spd_execute_command_wo_mutex( m_connection, "SET SELF SSML_MODE on" );
spd_execute_command_wo_mutex( m_connection, "SPEAK" );
char * reply = spd_send_data_wo_mutex( m_connection, "<speak>Hello, <mark name=\"mark1\"/> how does it work?</speak>", SPD_NO_REPLY );
delete[] reply;
spd_execute_command_wo_mutex( m_connection, "\r\n." );
spd_execute_command_wo_mutex( m_connection, "SET SELF SSML_MODE off" );
pthread_mutex_unlock( m_connection->ssip_mutex );
<mark name=\"mark1\"/>
索引标记在哪里。并且mark1
是索引标记名称。
该文档对于低级语音调度程序通信非常有用: http: //cvs.freebsoft.org/doc/speechd/ssip.html#Top
于 2013-02-15T14:11:00.887 回答