Click or drag to resize

WaveFileCreateWAV Method

Creates a WAV file from a AudioClip object.

Namespace:  IBM.Watson.DeveloperCloud.Utilities
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static byte[] CreateWAV(
	AudioClip clip,
	int bps = 16
)

Parameters

clip
Type: AudioClip
The AudioClip object to generate the WAV file from.
bps (Optional)
Type: SystemInt32
How many bits per sample we should use in the WAV file, 8, 16, or 32.

Return Value

Type: Byte
Returns a byte array of the raw data of the WAV file.
See Also