alekssamos / msspeech

not official API for Microsoft speech synthesis from Microsoft Edge web browser read aloud
https://pypi.org/project/msspeech/
57 stars 10 forks source link

Doesn't work with SoundLoader (kivy) #42

Open Juan27182 opened 1 year ago

Juan27182 commented 1 year ago

I already tried to save the file as .mp3, .wav, .ogg, doesn't matter, kivy isn't able to load properly. b'Unrecognized audio format' from kivy.app import App from kivy.core.audio import SoundLoader

class MusicPlayerApp(App): def build(self):

load the mp3 file using SoundLoader

    sound = SoundLoader.load(R"D:\Documents\aaaa.ogg")
    # play the audio file
    sound.play()
    return

if name == 'main': MusicPlayerApp().run()

alekssamos commented 1 year ago

Hello. Only MP3 (not ogg) is supported. Try to save just the same in this format. And play in the same format. And if you fail, first convert to another format with ffmpeg or sox.