You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: Stereo audio is currently not supported, it may result in unpleasant audio.
253
+
218
254
### Publish from other sources
219
255
220
256
In order to publish from non-file sources, you will have to implement your own `SampleProvider`, that could provide frames of data with a `NextSample` method.
@@ -257,6 +293,60 @@ With the Go SDK, you can accept media from the room.
257
293
For a full working example, refer to [filesaver](https://github.com/livekit/server-sdk-go/blob/main/examples/filesaver/main.go). This
258
294
example saves the audio/video in the LiveKit room to the local disk.
259
295
296
+
### Decoding an Opus track to PCM16
297
+
298
+
To get PCM audio out of a remote Opus audio track, you can use the following API:
The SDK will then read the provided remote track, decode the audio and write the PCM16 samples to the provided writer. Resampling to the target sample rate is handled internally, and so is upmixing/downmixing to the target channel count.
342
+
343
+
The API also provides an option to handle jitter, this is enabled by default but you can disable it using:
0 commit comments