Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Oct 20, 2023
1 parent d1a1a7f commit 1b4c295
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/switch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
[
{
"identifier": "switch-staging",
"branch": "develop",
"branch": "tts_provider",
"image_tag": "staging",
"ecs_service": "switch-staging",
"ecs_cluster": "somleng-switch-staging"
Expand Down Expand Up @@ -89,6 +89,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1

- name: Configure AWS credentials
id: aws-login
uses: aws-actions/configure-aws-credentials@v4
Expand Down Expand Up @@ -116,7 +119,7 @@ jobs:

- name: Export Polly Voices
run: |
components/freeswitch/bin/export_aws_polly_voices components/freeswitch/conf/autoload_configs/polly_voices.xml
components/freeswitch/bin/export_tts_voices > components/freeswitch/conf/autoload_configs/tts_voices.xml
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
3 changes: 0 additions & 3 deletions components/freeswitch/bin/export_tts_voices
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ gemfile do
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|"/>

class Exporter
attr_reader :tts_voices

Expand Down
2 changes: 0 additions & 2 deletions components/freeswitch/conf/autoload_configs/ssml.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
<configuration name="ssml.conf" description="SSML parser config">
<!-- voices in order of preference -->
<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="tts_voices.xml"/>
</tts-voices>

Expand Down
2 changes: 2 additions & 0 deletions components/freeswitch/conf/autoload_configs/tts_voices.xml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<!-- This file is generated automatically. Do not modify. -->
<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|"/>
1 change: 1 addition & 0 deletions infrastructure/modules/somleng_switch/switch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ resource "aws_iam_policy" "ecs_task_policy" {
{
"Effect": "Allow",
"Action": [
"polly:DescribeVoices",
"polly:SynthesizeSpeech"
],
"Resource": "*"
Expand Down

0 comments on commit 1b4c295

Please sign in to comment.