Skip to content

Audio is streched #20

Open
Open
@jongsun89

Description

@jongsun89

Hi @samirkumardas .
I'm trying to play audio with real-time created pcm data.
It comes slice by slice through websocket and use feed method on every websocket.onmessage.
It works cool , but sometimes or after long time sound is streched(delayed?).
I don't know the mechanism of this, but I assumed that pcm data is stacked in a queue while previous pcm data is processed(decoded or played).
but, i want to play the latest pcm data even if previous pcm is played to sync as real-time.
any idea to treat this ? like stop current played audio and play the latest every time when buffer is filled with the latest pcm

    encoding: '16bitInt',
    channels: 1,
    sampleRate: 8000,
    flushingTime: 1000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions