Page 1 of 1

Loading sounds from binary data instead of file

Posted: Fri Jul 06, 2018 8:10 am
by w022a
I've nearly completed development of my first renpy mystery game which I'm keen to share soon!. I'm trying to create a unique and personalised experience each time it's played by downloading various things from the my Web server and other Web sites.

For example, it pulls in current global news which forms part of the game

On of the features that I found really useful was the being able to load an image from binary data via the requests module.

I want to try to take this a step further by allowing sound files to be requests from the Web, which would take the form of synthesised speech file that includes the player details

Ideally I'd like to be able to so this without creating a temporary file and then loading it as this doesn't play nice cross platform

Has anyone done anything like this before, or any advice?