• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Vertecx · Mar 04, 2017 at 08:45 AM · betavoicechat

Opus Encoder Error : Channel must be stereo or mono

Im getting an error when trying to initialize the Opus encoder class in Unity3d 5.6 beta versions. The code works flawlessly on 5.5 and 5.4. I have tried b7-b9 and none of them work. Here are the error details.

ArgumentOutOfRangeException: Must be Mono or Stereo Parameter name: numChannels POpusCodec.OpusEncoder..ctor (SamplingRate inputSamplingRateHz, Channels numChannels, Int32 bitrate, OpusApplicationType applicationType, Delay encoderDelay) (at Assets/Plugins/PhotonVoiceApi/Core/POpusCodec/OpusEncoder.cs:208) ExitGames.Client.Photon.Voice.LocalVoice..ctor (ExitGames.Client.Photon.Voice.VoiceClient voiceClient, Byte id, IAudioStreamBase audioStream, ExitGames.Client.Photon.Voice.VoiceInfo voiceInfo, Int32 channelId) (at Assets/Plugins/PhotonVoiceApi/Core/VoiceClient.cs:217) ExitGames.Client.Photon.Voice.LocalVoice`1[System.Single]..ctor (ExitGames.Client.Photon.Voice.VoiceClient voiceClient, Byte id, IAudioStream`1 audioStream, ExitGames.Client.Photon.Voice.VoiceInfo voiceInfo, Int32 channelId) (at Assets/Plugins/PhotonVoiceApi/Core/VoiceClient.cs:317) ExitGames.Client.Photon.Voice.LocalVoiceFloat..ctor (ExitGames.Client.Photon.Voice.VoiceClient voiceClient, Byte id, IAudioStream`1 audioStream, ExitGames.Client.Photon.Voice.VoiceInfo voiceInfo, Int32 channelId) (at Assets/Plugins/PhotonVoiceApi/Core/VoiceClient.cs:385) ExitGames.Client.Photon.Voice.VoiceClient.CreateLocalVoice (IAudioStreamBase audioStream, ExitGames.Client.Photon.Voice.VoiceInfo voiceInfo, Int32 channelId) (at Assets/Plugins/PhotonVoiceApi/Core/VoiceClient.cs:727) ExitGames.Client.Photon.Voice.LoadBalancingFrontend.CreateLocalVoice (IAudioStreamBase audioStream, ExitGames.Client.Photon.Voice.VoiceInfo voiceInfo) (at Assets/Plugins/PhotonVoiceApi/LoadBalancingFrontend.cs:152) PhotonVoiceNetwork.CreateLocalVoice (IAudioStreamFloat audioClip, ExitGames.Client.Photon.Voice.VoiceInfo voiceInfo) (at Assets/PUNVoice/Scripts/PhotonVoiceNetwork.cs:215) PhotonVoiceRecorder.Start () (at Assets/PUNVoice/Scripts/PhotonVoiceRecorder.cs:144)

Im quite sure this is a unity3d beta bug. But I really need a solution right now. How to fix this Please help.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

92 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can't upload to Asset Store - error re: targeting WebPlayer which is no longer supported 0 Answers

20193b not accepting C:/Program Files/Java/jdk1.8.0_231?,Unity3d 21093b not accepting C:/Program Files/Java/jdk1.8.0_231? What to do? 0 Answers

NavMeshAgent wont work above z500 0 Answers

Postprocessing in 2018.2.0b1 1 Answer

Line renderer broken with SteamVR? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges