Talk to us
Talk to us
menu

Voice Recorder: How to Record Voice

Voice Recorder: How to Record Voice

Looking for a reliable and convenient voice recorder to add voice recording functionality to your app or website? Check out ZEGOCLOUD Cloud Recording SDK, the perfect solution for seamless audio recording. With this powerful tool, you can easily integrate online voice recording capabilities into your platform, allowing users to record high-quality audio with just a few clicks.

ZEGOCLOUD Cloud Recording to Record Voice Online

As the world moves increasingly online, the need for efficient and high-quality audio recording solutions is becoming increasingly important. That’s where ZEGOCLOUD Cloud Recording SDK comes in – an innovative tool designed to make online voice recording simple, effective, and hassle-free.

zegocloud cloud recording

ZEGOCLOUD Cloud Recording SDK offers a range of impressive features that make it stand out in a crowded field of online voice recording solutions. If you are looking for a reliable cloud recording SDK for developing your own audio recording Software, ZEGOCLOUD is the most recommended developer-friendly SDK.

Here are some of its most notable features:

1. Support for Multiple Audio Formats

With ZEGOCLOUD Cloud Recording SDK, you can record audio in various formats, including MP3, AAC, and WAV. This means you can easily tailor your recordings to meet the needs of your specific use case, whether you’re recording a podcast, a webinar, or a voice memo.

2. Custom Recording Parameters

ZEGOCLOUD Cloud Recording SDK allows you to customize your recording parameters to suit your needs. With this feature, you can adjust the bitrate, sample rate, and other key settings to ensure your recordings are of the highest quality possible.

3. Real-Time Audio Processing

ZEGOCLOUD Cloud Recording SDK offers the convenience of real-time audio processing, allowing you to adjust your recordings as they’re being made. With real-time processing, you can ensure that your recordings are of the highest quality possible, even in less-than-ideal recording environments.

4. Noise Reduction

ZEGOCLOUD Cloud Recording SDK features advanced noise reduction technology that helps eliminate background noise from your recordings. This ensures your voice is clear and easily understood, even in noisy environments.

5. Easy Integration

ZEGOCLOUD Cloud Recording SDK is designed to be easy to integrate into your existing app or website. Whether you’re a developer or a non-technical user, you can quickly and easily add online voice recording functionality to your platform with just a few lines of code.

How to Start Recording Voice with ZEGOCLOUD

Are you looking for a reliable and easy-to-use voice recording solution? Look no further than the ZEGOCLOUD Cloud Recording SDK. With its advanced features and simple integration, you can start recording high-quality audio quickly. Here’s how to get started.

Preparation

Steps on How to Start Recording Voice with ZEGOCLOUD

Follow the steps below to start recording voice with ZEGO Cloud Recording SDK:

1. Start Cloud Recording

To start recording audio or video streaming in the cloud using ZEGO Cloud Recording, use the StartRecord method with a room ID. Once successful, you’ll receive a taskID (UID) to manage the recording process. This efficient method simplifies cloud recording, making it perfect for educators, businesses, and content creators who want high-quality recordings.

2. Monitor Recording Status

To monitor the progress of your cloud recording, you can call the DescribeRecordStatus method repeatedly. This method will return the current recording status and upload address upon successful execution. Using this efficient method, you can easily keep track of your cloud recordings and ensure they are saved correctly.

3. Update Mixed-Stream Layout

You can use the method repeatedly to modify your video’s stream mixing layout while recording with ZEGOCLOUD. If you need more information on editing the stream mixing layout, refer to the Set Stream Mixing Layout feature. This feature allows you to customize how video streams are mixed and displayed during the recording process, giving you greater control over the final output.

4. Update the Whiteboard

If you need to update the Whiteboard ID during recording with ZEGOCLOUD, you can use the UpdateWhiteboard method repeatedly. For more information on Whiteboard Recording, refer to the relevant feature. This feature enables you to record your whiteboard activities in real time, providing you with a convenient way to share your ideas and collaborate with others.

5. Terminate Cloud Recording

To stop cloud recording using ZEGOCLOUD, simply call the StopRecord method. This will immediately end the recording process and save the video to your preferred third-party cloud storage. This convenient method makes it easy to capture high-quality recordings and securely store them for future use.

6. Managing Recorded Files

Follow the steps below to effectively manage your recorded files using the ZEGO Cloud Recording SDK.

Upload recorded files

After completing your cloud recording task, check the DescribeRecordStatus method for uploading details such as FileUrl, Status, and VideoId for Vod. The recorded files will be automatically uploaded to your designated third-party cloud storage and a callback will be triggered to the specified callback URL. This makes it easy to manage and access your recorded files from anywhere.

Manage recorded file names

The recording file name includes essential information like the StreamId and start recording timestamp. To learn more, review the OutputFileRule parameter in the StartRecord method.

Recording Various Stream Types

After discussing fundamental cloud recording concepts, let’s explore practical stream recording with the ZEGO Cloud Recording SDK.

1. Single Stream Recording

Here’s an example request to initiate single-stream recording using the ZEGO Cloud Recording SDK by setting the RecordMode parameter to 1 in the StartRecord method and specifying the desired file format (mp4, flv, or hls) using the OutputFileFormat parameter.

{
    "RoomId": "xxxx",
    "RecordInputParams": {
        "RecordMode": 1,
        "StreamType": 3,
        "MaxIdleTime": 60
    },
    "RecordOutputParams": {
        "OutputFileFormat": "mp4",
        "OutputFolder": "record/"
    },
    "StorageParams": {
        "Vendor": 2,
        "Region": "oss-xxxx",
        "Bucket": "xxxx",
        "AccessKeyId": "xxxx",
        "AccessKeySecret": "xxxx"
    }
}

2. Recording Mixed-stream

To start mixed-stream recording, set RecordMode to 2 and select mp4, flv, or hls as the OutputFileFormat.

Here’s an example:

{
    "RoomId": "xxxx",
    "RecordInputParams": {
        "RecordMode": 2,
        "StreamType": 3,
        "MaxIdleTime": 60,
        "MixConfig": {
            "MixMode": 2,
            "MixOutputStreamId": "mix",
            "MixOutputVideoConfig": {
                    "Width": 1280, 
                    "Height": 720, 
                    "Fps": 15, 
                    "Bitrate": 1130000
            }
        }
    },
    "RecordOutputParams": {
        "OutputFileFormat": "mp4",
        "OutputFolder": "record/"
    },
    "StorageParams": {
        "Vendor": 2,
        "Region": "oss-xxxx",
        "Bucket": "xxxx",
        "AccessKeyId": "xxxx",
        "AccessKeySecret": "xxxx"
    }
}

3. Define Mixed-Stream Layout

Here’s how to adjust the video layout during mixed-stream recording: set the MixMode parameter in StartRecord and use the UpdateLayout method for further changes.

Check out this example request for UpdateLayout:

{
    "TaskId": "xxxx",
    "MixMode": 1,
    "MixInputList": [
        {
            "StreamId": "xxxx", 
            "ViewType": 1, 
            "Top": 0, 
            "Left": 0, 
            "Bottom": 720, 
            "Right": 540, 
            "Layer": 1
        },
        {
            "StreamId": "", 
            "ViewType": 1, 
            "Top": 0, 
            "Left": 540, 
            "Bottom": 360, 
            "Right": 1080, 
            "Layer": 1
        },
        {
            "StreamId": "", 
            "ViewType": 1, 
            "Top": 360, 
            "Left": 540, 
            "Bottom": 720, 
            "Right": 1080, 
            "Layer": 1
        }
    ]
}

4. Multi-sector recording

To enable whiteboard recording in mixed-stream mode, set HasWhiteboard parameter to true in StartRecord, configure it using a JSON array, but only one whiteboard can be set at a time.

Sample request:

{
    "RoomId": "xxxx",
    "RecordInputParams": {
        "RecordMode": 2,
        "StreamType": 3,
        "HasWhiteboard": true,
        "Whiteboard": [
            {
                "HorizontalRatio": 16,
                "VerticalRatio": 9,
                "Width": 1280,
                "Height": 720,
                "WhiteboardId": "0000"
            }
        ],
        "MaxIdleTime": 60,
        "MixConfig": {
            "MixMode": 3,
            "MixOutputStreamId": "mix",
            "MixOutputVideoConfig": {
                    "Width": 1280, 
                    "Height": 720, 
                    "Fps": 15, 
                    "Bitrate": 1130000
            }
        }
    },
    "RecordOutputParams": {
        "OutputFileFormat": "mp4",
        "OutputFolder": "record/"
    },
    "StorageParams": {
        "Vendor": 2,
        "Region": "oss-xxxx",
        "Bucket": "xxxx",
        "AccessKeyId": "xxxx",
        "AccessKeySecret": "xxxx"
    }
}

5 . Capture Screenshots

To capture screenshots in single-stream recording, set OutputFileFormat to jpg and adjust SnapshotInterval as needed in StartRecord. Screenshots are not available in mixed-stream mode or for StreamType 1. Use DescribeRecordStatus to obtain task information, and receive callback notifications for each completed task once the screenshots are uploaded to your third-party cloud storage.

{
    "RoomId": "xxxx",
    "RecordInputParams": {
        "RecordMode": 1,
        "StreamType": 3,
        "MaxIdleTime": 60
    },
    "RecordOutputParams": {
        "OutputFileFormat": "jpg",
        "OutputFolder": "record/",
        "SnapshotInterval": 10
    },
    "StorageParams": {
        "Vendor": 2,
        "Region": "oss-xxxx",
        "Bucket": "xxxx",
        "AccessKeyId": "xxxx",
        "AccessKeySecret": "xxxx"
    }
}

Conclusion

ZEGOCLOUD offers a reliable and efficient solution for recording high-quality voices with ease. With its user-friendly interface and advanced features, anyone can start recording voice with just a few simple steps. Whether you’re a professional or a casual user, ZEGOCLOUD Cloud Recording SDK is an ideal choice for recording voice, and its affordable pricing makes it accessible to everyone.

To learn more about using the ZEGOCLOUD Cloud Recording SDK, please refer to the documentation provided by the SDK.

Talk to Expert

Learn more about our solutions and get your question answered.

Talk to us

Take your apps to the next level with our voice, video and chat APIs

Free Trial
  • 10,000 minutes for free
  • 4,000+ corporate clients
  • 3 Billion daily call minutes

Stay updated with us by signing up for our newsletter!

Don't miss out on important news and updates from ZEGOCLOUD!

* You may unsubscribe at any time using the unsubscribe link in the digest email. See our privacy policy for more information.