Skip to content

How do I generate a file from the recorded voice? #18

@RashidMaulana

Description

@RashidMaulana

Hello everyone, I would like to ask how do I generate a playable file using this library?

This is how I build the audioparam for VoicePing object.

val audioParam = AudioParam.Builder() .setAudioSource(audioSource) .setSampleRate(48000) .setFrameSize(4096) // Added frame size .setUsingOpusCodec(false) .build()

meanwhile this is where I put my startTalking.

val recordingPath = File(context.getExternalFilesDir("Recordings"), "myRecordedAudio.wav").toString() listener?.onStarted() VoicePing.startTalking(targetId, ChannelType.GROUP, this, recordingPath)

The file is generated but I can't play it. Where did everything go wrong?

Thank you! 😄

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