Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Oct 18, 2023
1 parent 2c02178 commit 792ad8c
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 93 deletions.
28 changes: 0 additions & 28 deletions components/freeswitch/bin/export_aws_polly_voices

This file was deleted.

25 changes: 25 additions & 0 deletions components/freeswitch/bin/export_tts_voices
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env ruby

require "bundler/inline"

gemfile do
source "https://rubygems.org"

gem "tts_voices", github: "somleng/tts_voices"
gem "ox"
gem "gyoku"
end

# <voice name="Basic.Kal" language="en-US" gender="Male" prefix="tts://flite|kal|"/>
# <voice name="Polly.Lotte" language="nl-NL" gender="Female" prefix="tts://tts_commandline|Polly.Lotte|"/>

voices = TTSVoices::Voice.basic.each_with_object([]) do |tts_voice, result|
result << {
"@name": tts_voice.identifier,
"@language": tts_voice.language,
"@gender": tts_voice.gender,
"@prefix": "tts://flite|kal|"
}
end

puts Gyoku.xml(voice: voices)
64 changes: 0 additions & 64 deletions components/freeswitch/conf/autoload_configs/polly_voices.xml

This file was deleted.

2 changes: 1 addition & 1 deletion components/freeswitch/conf/autoload_configs/ssml.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<tts-voices>
<voice name="Basic.Kal" language="en-US" gender="Male" prefix="tts://flite|kal|"/>
<voice name="Basic.Slt" language="en-US" gender="Female" prefix="tts://flite|slt|"/>
<X-PRE-PROCESS cmd="include" data="polly_voices.xml"/>
<X-PRE-PROCESS cmd="include" data="tts_voices.xml"/>
</tts-voices>

<!-- maps ISO language to say module -->
Expand Down
1 change: 1 addition & 0 deletions components/freeswitch/conf/autoload_configs/tts_voices.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- This file is generated automatically. Do not modify. -->

0 comments on commit 792ad8c

Please sign in to comment.