]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
const tweak
authorMichael Jerris <mike@jerris.com>
Thu, 26 Jun 2008 02:45:16 +0000 (02:45 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 26 Jun 2008 02:45:16 +0000 (02:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8848 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/asr_tts/mod_cepstral/mod_cepstral.c

index c6f5125c34f72059d6afb4f294aece770bc10228..a66522fe92a1523e7b635a60f513cd65fa05606b 100644 (file)
@@ -333,14 +333,14 @@ static void cepstral_text_param_tts(switch_speech_handle_t *sh, char *param, con
        assert(cepstral != NULL);
 
        if (!strcasecmp(param, "voice")) {
-               char *voice_name = val;
+               const char *voice_name = val;
                if (!strcasecmp(voice_name, "next")) {
                        if ((cepstral->voice = swift_port_find_next_voice(cepstral->port))) {
                                if (SWIFT_FAILED(swift_port_set_voice(cepstral->port, cepstral->voice))) {
                                        cepstral->done = cepstral->done_gen = 1;
                                        return;
                                }
-                               voice_name = (char *) swift_voice_get_attribute(cepstral->voice, "name");
+                               voice_name = swift_voice_get_attribute(cepstral->voice, "name");
                        } else {
                                voice_name = NULL;
                        }
@@ -366,7 +366,7 @@ static void cepstral_text_param_tts(switch_speech_handle_t *sh, char *param, con
                                return;
                        }
 
-                       voice_name = (char *) swift_voice_get_attribute(cepstral->voice, "name");
+                       voice_name = swift_voice_get_attribute(cepstral->voice, "name");
                }
 
                if (voice_name) {