Closed cdcd72 closed 1 year ago
import librosa
from gtts import gTTS
audio_path = ".\sample.m4a"
# Where <lang> is an IETF language tag such as en or zh-TW, and <name> is the full English name of the language, such as English or Chinese (Mandarin/Taiwan).
tts = gTTS("トイレはどこですか?", lang="ja")
tts.save(audio_path)
audio_duration = librosa.get_duration(path=audio_path)
print(audio_duration)
可能要自架一個物件儲存服務,才能達成需求。
初步實作一版。
是不是有機會可以選擇要文字輸出或者語音輸出?