diff --git a/.github/workflows/switch.yml b/.github/workflows/switch.yml
index ad9767528..20e9f3e1d 100644
--- a/.github/workflows/switch.yml
+++ b/.github/workflows/switch.yml
@@ -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"
@@ -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
@@ -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
diff --git a/components/freeswitch/bin/export_tts_voices b/components/freeswitch/bin/export_tts_voices
index 69b79d83a..1dfc126c9 100755
--- a/components/freeswitch/bin/export_tts_voices
+++ b/components/freeswitch/bin/export_tts_voices
@@ -10,9 +10,6 @@ gemfile do
gem "gyoku"
end
-#
-#
-
class Exporter
attr_reader :tts_voices
diff --git a/components/freeswitch/conf/autoload_configs/ssml.conf.xml b/components/freeswitch/conf/autoload_configs/ssml.conf.xml
index 7df714ed2..30948584f 100644
--- a/components/freeswitch/conf/autoload_configs/ssml.conf.xml
+++ b/components/freeswitch/conf/autoload_configs/ssml.conf.xml
@@ -3,8 +3,6 @@
-
-
diff --git a/components/freeswitch/conf/autoload_configs/tts_voices.xml b/components/freeswitch/conf/autoload_configs/tts_voices.xml
index bef598bd5..d91412720 100644
--- a/components/freeswitch/conf/autoload_configs/tts_voices.xml
+++ b/components/freeswitch/conf/autoload_configs/tts_voices.xml
@@ -1 +1,3 @@
+
+
diff --git a/infrastructure/modules/somleng_switch/switch.tf b/infrastructure/modules/somleng_switch/switch.tf
index 019b91870..754422ffb 100644
--- a/infrastructure/modules/somleng_switch/switch.tf
+++ b/infrastructure/modules/somleng_switch/switch.tf
@@ -279,6 +279,7 @@ resource "aws_iam_policy" "ecs_task_policy" {
{
"Effect": "Allow",
"Action": [
+ "polly:DescribeVoices",
"polly:SynthesizeSpeech"
],
"Resource": "*"