Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Jul 15, 2024
1 parent f42dc2a commit 5c5ef45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/guides/voice/sending-voice.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Linux 开发者需要从源码编译 [Opus](http://downloads.xiph.org/releases/o

## 加入语音频道

语音推流前需要先加入语音频道,调用 [IAudioClient] 上的 [ConnectAsync],该异步操作会返回一个 [IAudioClient] 对象,用于后续的语音推流操作。
语音推流前需要先加入语音频道,调用 [IAudioChannel] 上的 [ConnectAsync],该异步操作会返回一个 [IAudioClient] 对象,用于后续的语音推流操作。

[!code-csharp[加入语音频道](samples/joining_audio.cs)]

Expand All @@ -27,8 +27,9 @@ Linux 开发者需要从源码编译 [Opus](http://downloads.xiph.org/releases/o

应注意的是,语音连接是基于每个语音频道创建的,对多个语音频道分别调用 [ConnectAsync],会创建多个 [IAudioClient] 的实例。

[IAudioClient]: xref:Kook.Audio.IAudioClient
[IAudioChannel]: xref:Kook.IAudioChannel
[ConnectAsync]: xref:Kook.IAudioChannel.ConnectAsync*
[IAudioClient]: xref:Kook.Audio.IAudioClient
[RunMode.Async]: xref:Kook.Commands.RunMode

## 语音推流
Expand Down

0 comments on commit 5c5ef45

Please sign in to comment.