Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stream-ci-bot committed Sep 17, 2024
1 parent ac1da2a commit 70a9bce
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 1,168 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The dialog can be customized by passing own component to `Channel` component con

## Custom encoding

By default, the recording is encoded into `audio/wav` format. In order to reduce the size and keep the inter-browser format compatibility, you can use an MP3 encoder that is based on [`lamejs` implementation](https://github.com/gideonstele/lamejs). Follow these steps to achieve the MP3 encoding capability.
By default, the recording is encoded into `audio/wav` format. In order to reduce the size you can use MP3 encoder that is based on [`lamejs` implementation](https://github.com/gideonstele/lamejs). Follow these steps to achieve the MP3 encoding capability.

1. The library `@breezystack/lamejs` has to be installed as this is a peer dependency to `stream-chat-react`.

Expand Down
4 changes: 3 additions & 1 deletion docusaurus/docs/React/release-guides/upgrade-to-v12.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ const MessageInputUi2 = () => {

## Audio recordings transcoding

Until now, the audio recordings were transcoded to `audio/mp3` format for inter-browser compatibility and size reduction. However, as of the v12, the MIME type `audio/wav` will be the default. The MP3 encoder use is opt-in from now on.
Until now the audio recordings were transcoded to audio/mp3. As of v12, the MIME-type audio/wav will be the default.
You can still opt-in to MP3 and benefit from the reduced file size and bandwidth usage:

:::important
**Action required**<br/>
To opt into MP3 transcoding follow these steps:

1. The library `@breezystack/lamejs` has to be installed as this is a peer dependency to `stream-chat-react`.

Expand Down
Loading

0 comments on commit 70a9bce

Please sign in to comment.