Hierarchy

  • VoiceMessage

Properties

audioBuffer: Buffer

PCM mono 48k audio data

author: User
channel: StageChannel | VoiceChannel
client: Client<boolean>
connection: VoiceConnection
content?: string

Speech to text translation

duration: number

Duration in seconds

error?: Error

If there was any error during handling speech event, this will be set

Accessors

Methods

  • Useful if you want to send audio to some API or play it in browser

    Returns

    Wav audio encoded to base64

    Returns any

  • Saves audio to .wav file

    Parameters

    • filename: string

      File directory, for example: ./test.wav

    Returns void

Generated using TypeDoc