This is documentation for
Stream Chat Angular SDK v5, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v6)
.
TranscoderService
The TranscoderService is used to transcibe audio recording to a format that’s supported by all major browsers. The SDK uses this to create voice messages.
If you want to use your own transcoder you can provide a customTranscoder.
Methods
transcode
transcode(blob): Promise<Blob>
The default transcoder will leave audio/mp4 files as is, and transcode webm files to wav. If you want to customize this, you can provide your own transcoder using the customTranscoder field
Parameters
| Name | Type |
|---|---|
blob | Blob |
Returns
Promise<Blob>
the transcoded file
Defined in
projects/stream-chat-angular/src/lib/voice-recorder/transcoder.service.ts:63