Skip to content

Commit

Permalink
[5.3] MACF-87: Limit list to supported languages for TTS (#269)
Browse files Browse the repository at this point in the history
* MACF-87: Limit list to supported languages for TTS

* Select selected option
  • Loading branch information
pcandia authored Sep 13, 2024
1 parent 0384f78 commit e2e2d2e
Showing 1 changed file with 10 additions and 46 deletions.
56 changes: 10 additions & 46 deletions submodules/media/views/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,52 +92,16 @@ <h1>{{ i18n.callflows.media.create_media }}</h1>
<label for="tts_voice">{{ i18n.callflows.media.select }}</label>
<div class="input">
<select class="medium" name="tts.voice" id="tts_voice">
{{#if data.tts}}
<option selected="selected">{{data.tts.voice}}</option>
{{/if}}
<option>female/en-US</option>
<option>male/en-US</option>
<option>female/en-CA</option>
<option>female/en-AU</option>
<option>female/en-GB</option>
<option>male/en-GB</option>
<option>female/es-US</option>
<option>male/es-US</option>
<option>female/us-US</option>
<option>female/zh-CN</option>
<option>male/zh-CN</option>
<option>female/zh-HK</option>
<option>female/zh-TW</option>
<option>female/ja-JP</option>
<option>male/ja-JP</option>
<option>female/ko-KR</option>
<option>male/ko-KR</option>
<option>female/da-DK</option>
<option>female/de-DE</option>
<option>male/de-DE</option>
<option>female/ca-ES</option>
<option>female/es-ES</option>
<option>male/es-ES</option>
<option>female/fi-FI</option>
<option>female/fr-CA</option>
<option>male/fr-CA</option>
<option>female/fr-FR</option>
<option>male/fr-FR</option>
<option>female/it-IT</option>
<option>male/it-IT</option>
<option>female/nb-NO</option>
<option>female/nl-NL</option>
<option>female/pl-PL</option>
<option>female/pt-BR</option>
<option>female/pt-PT</option>
<option>male/pt-PT</option>
<option>female/ru-RU</option>
<option>male/ru-RU</option>
<option>female/sv-SE</option>
<option>female/hu-HU</option>
<option>female/cs-CZ</option>
<option>female/tr-TR</option>
<option>male/tr-TR</option>
{{#select data.tts.voice}}
<option value="female/en-US">female/en-US</option>
<option value="male/en-US">male/en-US</option>
<option value="female/en-GB">female/en-GB</option>
<option value="female/es-US">female/es-US</option>
<option value="female/de-DE">female/de-DE</option>
<option value="female/es-ES">female/es-ES</option>
<option value="female/fr-CA">female/fr-CA</option>
<option value="female/fr-FR">female/fr-FR</option>
{{/select}}
</select>
</div>
</div>
Expand Down

0 comments on commit e2e2d2e

Please sign in to comment.