Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with SoundLoader (kivy) #42

Open
Juan27182 opened this issue May 7, 2023 · 1 comment
Open

Doesn't work with SoundLoader (kivy) #42

Juan27182 opened this issue May 7, 2023 · 1 comment

Comments

@Juan27182
Copy link

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
Copy link
Owner

alekssamos commented May 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants