Spaces:
Running
Running
Niki Zhang
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -932,7 +932,7 @@ async def texttospeech(text,language,autoplay):
|
|
932 |
audio_bytes = BytesIO(audio_file.read())
|
933 |
audio = base64.b64encode(audio_bytes.read()).decode("utf-8")
|
934 |
print("tts....")
|
935 |
-
audio_style = 'style="width:
|
936 |
if autoplay:
|
937 |
audio_player = f'<audio src="data:audio/wav;base64,{audio}" controls autoplay {audio_style}></audio>'
|
938 |
else:
|
|
|
932 |
audio_bytes = BytesIO(audio_file.read())
|
933 |
audio = base64.b64encode(audio_bytes.read()).decode("utf-8")
|
934 |
print("tts....")
|
935 |
+
audio_style = 'style="width:220px;"'
|
936 |
if autoplay:
|
937 |
audio_player = f'<audio src="data:audio/wav;base64,{audio}" controls autoplay {audio_style}></audio>'
|
938 |
else:
|