ProPerNounpYK commited on
Commit
1d34370
·
verified ·
1 Parent(s): 884b836

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -5,6 +5,7 @@ import pygame
5
 
6
  def text_to_speech(text):
7
  pygame.init() # pygame 초기화
 
8
  tts = gTTS(text=text, lang="ko")
9
  tts.save("output.mp3")
10
  pygame.mixer.music.load("output.mp3")
 
5
 
6
  def text_to_speech(text):
7
  pygame.init() # pygame 초기화
8
+ pygame.mixer.init() # pygame mixer 초기화
9
  tts = gTTS(text=text, lang="ko")
10
  tts.save("output.mp3")
11
  pygame.mixer.music.load("output.mp3")