【问题标题】:Is it possible to know which speaker is speaking in Agora.io voice chat feature?是否可以在 Agora.io 语音聊天功能中知道哪个说话者在说话?
【发布时间】:2019-10-21 14:40:39
【问题描述】:

我最近开始在我的 Unity 多人游戏中使用 Agora.io 的语音聊天功能。我想在频道中的特定人员开始讲话时立即开始动画本地播放器对象,并在他/她停止时停止动画。

Agora SDK 中是否有任何方法可以调用来知道频道中的哪个用户在说话?

【问题讨论】:

    标签: unity3d agora.io real-time-multiplayer


    【解决方案1】:

    我想声音最大的人就是你要制作动画的人。

    我会使用启用音量指示

    public int EnableAudioVolumeIndication (int interval, int smooth);
    

    然后看看谁的声音最大

    public delegate void VolumeIndicationHandler (AudioVolumeInfo[] speakers, int speakerNumber, int totalVolume);
    

    VolumeIndicationHandler 文档Here

    EnableAudioVolumeIndication 文档Here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-18
      • 1970-01-01
      • 1970-01-01
      • 2017-09-14
      • 2021-10-11
      • 1970-01-01
      • 2020-12-31
      相关资源
      最近更新 更多