Exemplo n.º 1
0
bool DtmfSession::Start()
{
	/* create channel and associate all the required data */
	m_pRecogChannel = CreateRecogChannel();
	if(!m_pRecogChannel) 
		return false;

	/* add channel to session (send asynchronous request) */
	if(!AddMrcpChannel(m_pRecogChannel->m_pMrcpChannel))
	{
		delete m_pRecogChannel;
		m_pRecogChannel = NULL;
		return false;
	}
	return true;
}
Exemplo n.º 2
0
bool SynthSession::Start()
{
	if(!GetScenario()->IsSpeakEnabled())
		return false;
	
	/* create channel and associate all the required data */
	m_pSynthChannel = CreateSynthChannel();
	if(!m_pSynthChannel) 
		return false;

	/* add channel to session (send asynchronous request) */
	if(!AddMrcpChannel(m_pSynthChannel->m_pMrcpChannel))
	{
		delete m_pSynthChannel;
		m_pSynthChannel = NULL;
		return false;
	}
	return true;
}
Exemplo n.º 3
0
bool RecorderSession::Start()
{
	const RecorderScenario* pScenario = GetScenario();
	if(!pScenario->IsRecordEnabled())
		return false;
	
	/* create channel and associate all the required data */
	m_pRecorderChannel = CreateRecorderChannel();
	if(!m_pRecorderChannel) 
		return false;

	/* add channel to session (send asynchronous request) */
	if(!AddMrcpChannel(m_pRecorderChannel->m_pMrcpChannel))
	{
		delete m_pRecorderChannel;
		m_pRecorderChannel = NULL;
		return false;
	}
	return true;
}