Exemplo n.º 1
0
static void configManagerVoicePromptsInit( uint16 no_vp , uint16 no_tts_languages )
{
#ifdef CSR_VOICE_PROMPTS
  	/* check the number of events configured and the supported tts languages */
	if(no_vp)
  	{
        /* Read in the PSKEY that tells us where the prompt header is */
        if(ConfigRetrieve(theSink.config_id , PSKEY_VOICE_PROMPTS, &theSink.conf4->vp_init_params, sizeof(vp_config_type)))
        {
#ifdef TEXT_TO_SPEECH_LANGUAGESELECTION
            theSink.no_tts_languages = no_tts_languages;
            
#ifdef ENABLE_SQIFVP
            /* Initilaise as no partitions currently mounted */
            theSink.rundata->partitions_mounted = 0;
            
            configManagerSqifPartitionsInit(  );
#endif            
                 
#endif
            /* Pass configuration to the voice prompts plugin */
            TTSConfigureVoicePrompts(no_vp);
        }
    }
#endif /* CSR_VOICE_PROMPTS */
}
Exemplo n.º 2
0
static void configManagerVoicePromptsInit( uint16 pConfigID , uint16 no_vp , uint16 no_tts_languages )
{
#ifdef CSR_VOICE_PROMPTS
  	/* cheack the number of events configured and the supported tts languages */
	if(no_vp)		
  	{
		vp_config_type * config = NULL;
        uint16 size_vp_config = sizeof(vp_config_type);
        
        /* Allocate enough memory to hold event configuration */
        config = (vp_config_type *) mallocPanic(size_vp_config);
        
    	if (config)
    	{
            /* Read in the PSKEY that tells us where the prompt header is */
        	if(ConfigRetrieve(pConfigID , PSKEY_VOICE_PROMPTS, config, size_vp_config))
            {
                TTSConfigureVoicePrompts(no_vp, config, no_tts_languages);
            }
        }
    }
#endif /* CSR_VOICE_PROMPTS */
}