Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RashidMaulana opened this issue Jan 17, 2024 · 0 comments
Open

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

RashidMaulana opened this issue Jan 17, 2024 · 0 comments

Comments

@RashidMaulana
Copy link

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! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant