July 2017
Beginner to intermediate
390 pages
10h 53m
English
That is all the preparation we need to do. It is time to write our reusable object.
We can do this in our Scripts folder or we can do it in a new folder. Since we want things to be grouped together, I suggest you create a new folder as a subfolder under Scripts. I think VoicePlayer would be a nice name for this: this is what the component will do.
In that newly created folder, or in the Scripts folder if you decided to use that one, create two new scripts. One is called SpatialVoicePlayer, and the other is called WaveFileParser. The first one will be the one generates the voice, and the other one is used to convert the data.
The WaveFileParser is quite complicated. It reads the data from the stream and dissects ...
Read now
Unlock full access