How can I play a lot of Audio mp3's in one AudioSource ?

I would like to add a function to my game where voicelines are played in an audio source.
That means I have around 200 .mp3 voicelines, but I don’t want to make an extra audio source for everyone because that would be far too clumsy and confusing.
Can you link me to a tutorial which would best fit what I want to do?
Because I only find tutorials that show how to play music but not how to run a few hundred .mp3 files through just one audio source?

I would like to play different .mp3 voice lines through if functions, which can be random and not necessarily correspond to a fixed order.

Can someone show me a Youtube tutorial please, that shows something like that what I need?

If you only need one voice at a time, make an array of those AudioClips, select the one you want and assign it to the one AudioSource by setting its .clip property, then calling .Play().

1 Like

Some manual work will be required.
Load the audio into audacity. And note down the time for each new audio.
Push all the information into an array.
And then play the single audio file using Audiosource.time

1 Like