How to play created in code Audio File from code? #1644
Unanswered
Buran-company
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Do you want to load an audio file in a script, or do you want to create the audio samples/data generatively in code? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I'm trying to implement this thing: create an audio file in script and play it.
So, I have .py file, where an audio file creates and saves in a directory (well, I have the path to the audio file and I should operate with this)
Then, I have to load this audio file in script, but it's a tricky one.
I wanted to create Sound Asset in script, but I can't save it (serialization error), and I don't know, how to attach an audio file to Sound Asset in script.
In Stride documentation I saw information about creating custom audio data, I checked code sample, but I don't know, how to create CustomSoundSource without using SoundInstance.
Please, help me to resolve this question, it's a very important thing to me.
Beta Was this translation helpful? Give feedback.
All reactions