DartBridgeAudio class
Audio conversion bridge over the commons C ABI
(rac/core/rac_audio_utils.h).
Matches Swift CppBridge's convertPCMToWAV path
(RunAnywhere+TTS.swift:118-127 calls rac_audio_float32_to_wav), so the
WAV container the SDK plays/uploads is byte-identical across platforms.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
float32ToWav(
Uint8List pcmBytes, int sampleRate) → Uint8List? -
Wrap Float32 PCM samples (
[-1.0, 1.0], little-endian bytes) in a WAV container viarac_audio_float32_to_wav. Returns null on failure. -
int16ToWav(
Uint8List pcmBytes, int sampleRate) → Uint8List? -
Wrap Int16 PCM samples (little-endian bytes) in a WAV container via
rac_audio_int16_to_wav. Returns null on failure.