Skip to content

Record silence at the beginning and end of a recording voice client #1980

@denisnumb

Description

@denisnumb

Summary

Parameter responsible for whether the VoiceClient.start_recording method will record silence at the beginning and end of the recording

What is the feature request for?

The core library

The Problem

Used this example to record audio from a voice channel. Everything works, in the output I get a separate audio track for each speaking user.

Next, I want to overlay the audio files on top of each other and glue the conversation in the channel into one file, but as a result, all the voices in the file sound simultaneously, although in fact the users speak in turn.

This is because VoiceClient.start_recording() does not record silence at the beginning and end of the user's audio recording.

Thus, if three people say something in turn, then as a result the recordings of their speech will have different lengths and because of this they are mixed into one heap.

The Ideal Solution

I would like the start_recording method to have a bool parameter, which is responsible for the need to record silence not only between the replicas of users, but also at the beginning and end of the recording.

The Current Solution

At the moment, I do not have a good solution to this problem, because. I have to change the methods of the library anyway.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions