ghadaAlmuaikel commited on
Commit
d65fb49
1 Parent(s): 7abd4ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -3,8 +3,8 @@ from gtts import gTTS
3
  import os
4
 
5
  def greet(name):
6
- greeting_text = f"Hello, {name}! Welcome to our AI-powered voice greeting system."
7
- tts = gTTS(text=greeting_text, lang='en')
8
  tts.save("greeting.mp3")
9
  return "greeting.mp3"
10
 
@@ -13,9 +13,9 @@ iface = gr.Interface(
13
  fn=greet,
14
  inputs="text",
15
  outputs="audio",
16
- title="AI Voice Greeting",
17
- description="Enter your name and receive a personalized greeting as an AI-generated voice."
18
  )
19
 
20
  # Launch the interface
21
- iface.launch()
 
3
  import os
4
 
5
  def greet(name):
6
+ greeting_text = f"مرحباً، {name}! أهلاً بك في نظام تحية الذكاء الاصطناعي."
7
+ tts = gTTS(text=greeting_text, lang='ar')
8
  tts.save("greeting.mp3")
9
  return "greeting.mp3"
10
 
 
13
  fn=greet,
14
  inputs="text",
15
  outputs="audio",
16
+ title="تحية صوتية بالذكاء الاصطناعي",
17
+ description="أدخل اسمك وتلقَّى تحية شخصية بصوت الذكاء الاصطناعي."
18
  )
19
 
20
  # Launch the interface
21
+ iface.launch()