import os
import time
import playsound
import speech_recognition as sr
from gtts import gTTS

def speak(text):
    tts=gTTS(text=text,lang="en")
    filename="s1.mp3"
    tts.save(filename)
    playsound.playsound(filename)

speak("hello")

81395a7bb1931d635b174c7048aa92d1c41b28bf
<mask token>

<mask token>


def speak(text):
    tts = gTTS(text=text, lang='en')
    filename = 's1.mp3'
    tts.save(filename)
    playsound.playsound(filename)


<mask token>

<mask token>


def speak(text):
    tts = gTTS(text=text, lang='en')
    filename = 's1.mp3'
    tts.save(filename)
    playsound.playsound(filename)


speak('hello')

import os
import time
import playsound
import speech_recognition as sr
from gtts import gTTS


def speak(text):
    tts = gTTS(text=text, lang='en')
    filename = 's1.mp3'
    tts.save(filename)
    playsound.playsound(filename)


speak('hello')

import os
import time
import playsound
import speech_recognition as sr
from gtts import gTTS

def speak(text):
    tts=gTTS(text=text,lang="en")
    filename="s1.mp3"
    tts.save(filename)
    playsound.playsound(filename)

speak("hello")
