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
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.
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 SoundLoaderclass MusicPlayerApp(App): def build(self):
load the mp3 file using SoundLoader
if name == 'main': MusicPlayerApp().run()