mrrtmob commited on
Commit
25f78d4
·
1 Parent(s): 8bdeb28
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -138,11 +138,16 @@ def generate_speech(text, temperature=0.6, top_p=0.95, repetition_penalty=1.1, m
138
  return None
139
  # Examples for the UI - Khmer text examples
140
  examples = [
141
- ["ជំរាបសួរ ខ្ញុំឈ្មោះ Kiri ហើយខ្ញុំគឺជាម៉ូដែលផលិតសំលេងនិយាយ។"],
142
- ["ខ្ញុំអាចបង្កើតសំលេងនិយាយផ្សេងៗ ដូចជា <laugh> សើច ឬ <sigh> ថប់ដង្ហើម។"],
143
- ["ខ្ញុំរស់នៅក្នុងទីក្រុងភ្នំពេញ ហើយមានចរាចរណ៍ <gasp> ច្រើនណាស់។"],
144
- ["ពេលខ្លះ ពេលខ្ញុំនិយាយច្រើនពេក ខ្ញុំត្រូវ <cough> សុំទោស។"],
145
- ["ការនិយាយនៅចំពោះមុខសាធារណៈ អាចមានការពិបាក។ <groan> ប៉ុន្តែបើហាត់ គេអាចធ្វើបាន។"],
 
 
 
 
 
146
  ]
147
  # Available voices (commented out for simpler UI)
148
  # VOICES = ["tara", "leah", "jess", "leo", "dan", "mia", "zac", "zoe", "jing", "Elise"]
 
138
  return None
139
  # Examples for the UI - Khmer text examples
140
  examples = [
141
+ ["ជំរាបសួរ ខ្ញុំឈ្មោះ Kiri ហើយខ្ញុំជា AI ដែលអាចបម្លែងអត្ថបទទៅជាសំលេង។"],
142
+ ["ខ្ញុំអាចបង្កើតសំលេងនិយាយផ្សេងៗ ដូចជា <laugh> សើច។"],
143
+ ["ម្សិលមិញ ខ្ញុំឃើញឆ្មាមួយក្បាលដេញចាប់កន្ទុយខ្លួនឯង។ <laugh> វាគួរឲ្យអស់សំណើចណាស់។"], # Yesterday, I saw a cat chasing its own tail. <laugh> It was so funny.
144
+ ["ខ្ញុំរៀបចំម្ហូប ស្រាប់តែធ្វើជ្រុះគ្រឿងទេសពេញឥដ្ឋ។ <chuckle> វាប្រឡាក់អស់ហើយ។"], # I was preparing food when suddenly I dropped spices all over the floor. <chuckle> It's all messed up.
145
+ ["ថ្ងៃនេះហត់ណាស់ ធ្វើការពេញមួយថ្ងៃ។ <sigh> ចង់ទៅផ្ទះសម្រាកហើយ។"], # So tired today, worked all day. <sigh> Want to go home and rest now.
146
+ ["អាកាសធាតុត្រជាក់ ធ្វើឲ្យខ្ញុំផ្តាសាយតិចៗ។ <sniffle> ខ្ញុំក៏ក្អកដែរ។ <cough>"], # The cold weather made me get a bit of a cold. <sniffle> I also cough. <cough>
147
+ ["ការប្រឡងមិនបានល្អដូចការរំពឹងទុកទេ។ <groan> ខ្ញុំត្រូវរៀនឲ្យខ្លាំងជាងនេះ។"], # The exam didn't go as well as expected. <groan> I need to study harder.
148
+ ["កិច្ចប្រជុំនេះវែងអន្លាយពេកហើយ។ <yawn> ខ្ញុំចាប់ផ្តើមងងុយគេងហើយ។"], # This meeting is too long. <yawn> I'm starting to get sleepy.
149
+ ["ខ្ញុំដើរទៅទិញអីញ៉ាំ ស្រាប់តែឃើញឆ្កែធំមួយរត់មករកខ្ញុំ។ <gasp> ខ្ញុំភ័យណាស់! តែវារត់ទៅបាត់វិញ។ <sigh>"], # I was walking to buy something when suddenly I saw a big dog running towards me. <gasp> I was so scared! But then it ran away. <sigh>
150
+ ["អរគុណច្រើនសម្រាប់ជំនួយ។ <chuckle> បើគ្មានអ្នកទេ ខ្ញុំមិនដឹងធ្វើយ៉ាងម៉េចទេ។"],
151
  ]
152
  # Available voices (commented out for simpler UI)
153
  # VOICES = ["tara", "leah", "jess", "leo", "dan", "mia", "zac", "zoe", "jing", "Elise"]