You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
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 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()
The text was updated successfully, but these errors were encountered: