Skip to content

Bug in sherpa-onnx-microphone.cc #2320

Description

@TheOriginalBytePlayer

Line #131 is wrong because the RecordCallBack expects the final parameter to be a pointer to the stream, but your code is passing a null pointer which results in an access violation.

The correct line is:

if (!mic.OpenDevice(device_index, mic_sample_rate, 1, RecordCallback, s.get())) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions