Skip to content

Instantly share code, notes, and snippets.

@Yengas
Last active March 5, 2021 00:55
Show Gist options
  • Save Yengas/20204b119b753e26aee2 to your computer and use it in GitHub Desktop.
Save Yengas/20204b119b753e26aee2 to your computer and use it in GitHub Desktop.
Text to Speech
Reverse engineered flash application @ http://www.oddcast.com/home/demos/tts/tts_example.php
1 = name string
2 = voice int
3 = lang int
4 = engine int
5 = fx_type string
6 = fx_level int
<engineID>{engine}</engineID><voiceID>{voice}</voiceID><langID>{lang}</langID><ext>mp3</ext>
Eger FX istiyorsan
<engineID>{engine}</engineID><voiceID>{voice}</voiceID><langID>{lang}</langID><FX>{fx_type.toLowerCase()}{fxLevel}</FX><ext>mp3</ext>
Yukaridaki xml string'i konusturmak istedigin textin utf-8 encode'lu hali ile birlestirip(bosluk, ara karakter hiç bir sey yok)
http://cache-a.oddcast.com/c_fs/{hash}.mp3?engine={engine}&language={lang}&voice={voice}&text={text}&useUTF8=1
seklinde istedigin sekilde konusturabilirsin.
FX var ise url'ye &fx_type=d&fx_level=2 ekle.
Örnek
<engineID>3</engineID><voiceID>3</voiceID><langID>1</langID><ext>mp3</ext>Once upon a time in a kingdom far far away.
Hash: 8fa431be0bb718a3e3ec1e1c924094d6
http://cache-a.oddcast.com/c_fs/8fa431be0bb718a3e3ec1e1c924094d6.mp3?engine=3&language=1&voice=3&text=Once upon a time in a kingdom far far away.&useUTF8=1
Language/Voice/Engine ve FX seçenekleri için
http://www.oddcast.com/home/demos/tts/tts_example.php?sitepal
Bu sitenin formlarını kurcalamak lazım.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment