Watson Developer Cloud Unity SDK  1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
IBM.Watson.DeveloperCloud.Utilities.WaveFile Class Reference

WAV Utility functions. More...

Static Public Member Functions

static AudioClip ParseWAV (string clipName, byte[] data)
 Creates a AudioClip object from WAV file data. More...
 
static byte[] CreateWAV (AudioClip clip, int bps=16)
 Creates a WAV file from a AudioClip object. More...
 

Detailed Description

WAV Utility functions.

Member Function Documentation

static byte [] IBM.Watson.DeveloperCloud.Utilities.WaveFile.CreateWAV ( AudioClip  clip,
int  bps = 16 
)
inlinestatic

Creates a WAV file from a AudioClip object.

Parameters
clipThe AudioClip object to generate the WAV file from.
bpsHow many bits per sample we should use in the WAV file, 8, 16, or 32.
Returns
Returns a byte array of the raw data of the WAV file.
static AudioClip IBM.Watson.DeveloperCloud.Utilities.WaveFile.ParseWAV ( string  clipName,
byte[]  data 
)
inlinestatic

Creates a AudioClip object from WAV file data.

Parameters
clipNameWhat name to give the AudioClip.
dataThe raw data of the WAV file.
Returns
Returns an AudioClip object on success, null on failure.

The documentation for this class was generated from the following file: