How to use pointers in the "voice dispatcher"?

So, a question like the topic: "How to use pointers in the speech dispatcher?" I heard a lot about this, but can't find a tutorial on how to use it in SPD_MODE_THREADED. The main problem is that you send the "SPEAK" command, you cannot change the data mode to SPD_DATA_SSML. And I think that I am doing something wrong. So, who knows how to use these pointers, the tutorials are also very acceptable. Thanks!

+1
source share
1 answer

Solved , this is a way to set index marks in a voice dispatcher:

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

+1

All Articles