Utility functions and helpers for Logger integration.
Name | Type | Description |
---|---|---|
pcm_bytes | bytes | PCM16LE audio data. |
threshold | int | Max absolute value to consider as silence. |
min_silence_ratio | float | Minimum ratio of silent samples to consider the buffer as silence. |
Name | Description |
---|---|
bool | True if buffer is mostly silence, False otherwise. |
Name | Type | Description |
---|---|---|
pcm_bytes | bytes | Raw PCM-16 audio data |
num_channels | int | Number of audio channels (default: 1) |
sample_rate | int | Sample rate in Hz (default: 24000) |
Name | Description |
---|---|
bytes | WAV format audio data |
Name | Description |
---|---|
obj | Any Python object |