I am trying to import and set the sound of a freshly created speaker using Python. Strangely the sound plays normally when I import it manually, but when I use Python to do the same thing it does not. Even when imported via script, the sound still shows up normally in the speaker-menu. This is my code:
bpy.ops.object.speaker_add() bpy.ops.sound.open_mono(filepath=my_file_path) bpy.data.speakers["Speaker"].sound = bpy.data.sounds[os.path.basename(path)]
I have made sure my file path is correct.