WAV Utility functions.
More...
|
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...
|
|
static byte [] IBM.Watson.DeveloperCloud.Utilities.WaveFile.CreateWAV |
( |
AudioClip |
clip, |
|
|
int |
bps = 16 |
|
) |
| |
|
inlinestatic |
Creates a WAV file from a AudioClip object.
- Parameters
-
clip | The AudioClip object to generate the WAV file from. |
bps | How 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
-
clipName | What name to give the AudioClip. |
data | The 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: