Outgoing audio stream bitrate?
Leaving room and rejoining the same room audio issue
"Frame size is 20 ms. For efficency, set it to 10 ms."
AudioOutCapture attaching to another audioListener
Photon Speaker not playing on Oculus Quest
Do earphones improve chat audio quality?
Native Swift Alternative?
there are 2 audio listeners in the scene
Divide by zero
Photon.Voice.Unity.UnityAudioOut.Service () (at E:/Remotely/IPL.Photon/Assets/com.IPL.Photon/Dependencies/Photon/PhotonVoice/PhotonVoiceApi/Platforms/Unity/UnityAudioOut.cs:83)
Photon.Voice.AudioStreamPlayer`1[T].Service () (at E:/Remotely/IPL.Photon/Assets/com.IPL.Photon/Dependencies/Photon/PhotonVoice/PhotonVoiceApi/Core/AudioStreamPlayer.cs:55)
Photon.Voice.Unity.Speaker.Update () (at E:/Remotely/IPL.Photon/Assets/com.IPL.Photon/Dependencies/Photon/PhotonVoice/Code/Speaker.cs:166)
Photon voice connection on Quest
Using (Secure) WebSockets for Photon Voice with Photon Server
VoiceConnection.ConnectUsingSettings()
it seems that Photon Voice enforces either UDP or TCP on Photon Server.
Questions:
1) Is Voice over (secure) WebSockets officially supported?
2) Regardless of the official support statement, is there any chance to get Photon Voice running with (Secure) WebSockets? How?
Thank you
Photon Voice - You can hear your voice in the headphones when starting DemoVoice-PushToTalk-Scene
Photon Voice 2 not working on Oculus Quest (Unity3D)
- Photon Voice Network script added to a Global object in the room and with a pointed to the speak prefab
- The speaker prefab is a LocalPlayerController which contains a LocalAvatar
- The LocalAvatar contains the PhotonView Object, PhotonVoiceView Object, Recorder (connected to the PhotonVoiceView), Speaker (connected to the PhotonVoiceView), Audio Source and MicAmplifier (downloaded following the link provided by @JohnTube in another thread)
- I have disabled "Can own microphone" in the Avatar script
- I have disabled VAD
- I have created a Photon Voice app and copy/pasted the App Id in the Photon Settings
- I have updated the Photon Voice library today (Nov,28th 2019), so I have the latest release.
UWP Failed Windows App Certification Kit
How to configure the android API level when using Photon Voice 2 in unity2018
Can users in different rooms talk to each other?
Photon Voice on Magic Leap One
Hi,
I have the following problem. i want to use Photon Voice with Magic Leap One. When I try to talk between my glasses and someone using the PC, I hear in the ML when the person on the pc is talking but not the other way round. I get the error below when I start the example that comes with Photon Voice. I found an add on for Magic Leap here: https://www.photonengine.com/en-us/sdks#voice-sdkvoicemagicleapaddon
But the download is blocked and I don't know how to join the XR developer circle. How can I find this? Can anyone help me with that?
BR, Elisabeth
[PV] OpusCodec.Encoder: System.EntryPointNotFoundException: Unable to find an entry point named 'opus_encoder_ctl_set' in 'opus_egpv'.
12-13 16:23:00.246 1610 1 E Unity : at UnityEngine.Playables.PlayableDirector.SendOnPlayableDirectorStop () [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at POpusCodec.Wrapper.opus_encoder_ctl_set (System.IntPtr st, POpusCodec.Enums.OpusCtlSetRequest request, System.Int32 value) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at POpusCodec.Wrapper.set_opus_encoder_ctl (System.IntPtr st, POpusCodec.Enums.OpusCtlSetRequest request, System.Int32 value) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at POpusCodec.OpusEncoder.set_Bitrate (System.Int32 value) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at POpusCodec.OpusEncoder..ctor (POpusCodec.Enums.SamplingRate inputSamplingRateHz, POpusCodec.Enums.Channels numChannels, System.Int32 bitrate, POpusCodec.Enums.OpusApplicationType applicationType, POpusCodec.Enums.Delay encoderDelay) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.OpusCodec+Encoder`1[T]..ctor (Photon.Voice.VoiceInfo i, Photon.Voice.ILogger logger) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.OpusCodec+EncoderFloat..ctor (Photon.Voice.VoiceInfo i, Photon.Voice.ILogger logger) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.OpusCodec+Factory.CreateEncoder[B] (Photon.Voice.VoiceInfo i, Photon.Voice.ILogger logger) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.LocalVoiceAudio`1[T].CreateDefaultEncoder (Photon.Voice.VoiceInfo info) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.LocalVoice..ctor (Photon.Voice.VoiceClient voiceClient, Photon.Voice.IEncoder encoder, System.Byte id, Photon.Voice.VoiceInfo voiceInfo, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.LocalVoiceFramedBase..ctor (Photon.Voice.VoiceClient voiceClient, Photon.Voice.IEncoder encoder, System.Byte id, Photon.Voice.VoiceInfo voiceInfo, System.Int32 channelId, System.Int32 frameSize) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.LocalVoiceFramed`1[T]..ctor (Photon.Voice.VoiceClient voiceClient, Photon.Voice.IEncoder encoder, System.Byte id, Photon.Voice.VoiceInfo voiceInfo, System.Int32 channelId, System.Int32 frameSize) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.LocalVoiceAudio`1[T]..ctor (Photon.Voice.VoiceClient voiceClient, Photon.Voice.IEncoder encoder, System.Byte id, Photon.Voice.VoiceInfo voiceInfo, Photon.Voice.IAudioDesc audioSourceDesc, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.LocalVoiceAudioFloat..ctor (Photon.Voice.VoiceClient voiceClient, Photon.Voice.IEncoder encoder, System.Byte id, Photon.Voice.VoiceInfo voiceInfo, Photon.Voice.IAudioDesc audioSourceDesc, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.LocalVoiceAudio`1[T].Create (Photon.Voice.VoiceClient voiceClient, System.Byte voiceId, Photon.Voice.IEncoder encoder, Photon.Voice.VoiceInfo voiceInfo, Photon.Voice.IAudioDesc audioSourceDesc, System.Int32 channelId) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.VoiceClient+<>c__DisplayClass45_0`1[T].<CreateLocalVoiceAudio>b__0 (System.Byte vId, System.Int32 chId) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at System.Func`3[T1,T2,TResult].Invoke (T1 arg1, T2 arg2) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.VoiceClient.createLocalVoice (System.Int32 channelId, System.Func`3[T1,T2,TResult] voiceFactory) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.VoiceClient.CreateLocalVoiceAudio[T] (Photon.Voice.VoiceInfo voiceInfo, Photon.Voice.IAudioDesc audioSourceDesc, System.Int32 channelId, Photon.Voice.IEncoder encoder) [0x00000] in <00000000000000000000000000000000>:0
12-13 16:23:00.246 1610 1 E Unity : at Photon.Voice.VoiceClient.CreateLocalVoiceAudioFromSource (Photon.Voice.VoiceInfo voiceInfo, Photon.Voice.IAudioDesc source, System.B
Some Questions about SocketException 10054 thrown from ExitGames.Client.Photon.SocketTcpAsync.
The Exception message:
2019-12-18 14:10:39.761 10511-10543/? E/Unity: SocketTcpAsync.EndReceive SocketException. State: Connected. Server: '47.100.93.146' ErrorCode: 10054 SocketErrorCode: ConnectionReset Message: Connection reset by peer System.Net.Sockets.SocketException (0x80004005): Connection reset by peer
at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult asyncResult) [0x00012] in <3845a180c26b4889bc2d47593a665814>:0
at ExitGames.Client.Photon.SocketTcpAsync.ReceiveAsync (System.IAsyncResult ar) [0x00023] in <e2387f9dc4784e52ba991612d3ef9d57>:0
We cannot see relevant codes about this exception ,but it may have some affects to our application, I have two questions as follows:
1. Is ExitGames.Client.Photon.SocketTcpAsync.ReceiveAsync executed in the Unity main thread?
2.Is this function included in a try catch sentence?
Thanks,
Harlan.
Im just lost with photon voice setup
I have 1 persistant object setup:
* Recorder
* PhotonVoiceNetwork
Then On the player I have:
* PhotonView
* Speaker
I have setup the primary recorder and speaker. I literally have no idea what I am doing wrong. The docs are super sparse on the specifics as well. If anyone is willing to help me out with ANY information that would be great. I'm willing to provide anything else that would be helpful.
Here is my persistant object:
https://imgur.com/5Gojaib
Here is my player object:
https://imgur.com/U2Mznn4
The "Voice Chat" on the player will populate the recorder at runtime from the persistant object. The one on the persistant object has been disable to remove as many potential areas for errors as possible.
Capture microphone input from Quest while others are in a room speaking
There are user in an open world where they can speak with each other using photon voice. Now one user wants to say something that is then transcribed by an online service (This happens by pressing a button).
System:
Quest with Unity 2019.2.3f1
What I tried:
1) Using Unitys internal mic - but this does interfer with the one that photon uses which will result into not hearing anybody after transcribing.
2) Looking at WebRTC tut where onAudioFrameFloat() and FloatProcessor() was used.
There is a strange case, that after my class
[RequireComponent(typeof(Recorder))] public class VoiceController : VoiceComponent
awkes
protected override void Awake() { LogManager.Instance.Log("000 AWAKE"); base.Awake(); _isRecording = false; AudioListener audioListener = FindObjectOfType<AudioListener>(); if (audioListener != null) { AudioOutCapture aoc = audioListener.GetComponent<AudioOutCapture>(); if (aoc == null) { aoc = audioListener.gameObject.AddComponent<AudioOutCapture>(); LogManager.Instance.Log("000 AudioOutCapture was init"); } // maybe this works aoc.OnAudioFrame += this.OnAudioOutFrameFloat; _aoc = aoc; } else { LogManager.Instance.Log("AUDIOLISENER IS NULL"); } }
the method assigned by aoc.OnAudioFrame += is never called although it is implemented in the same class. In the class is also a start and stop- recording method, where I earlier tried using the _aoc to assign the OnAudioOutFrameFloat, but after awake _aoc is somehow null ???
Ealier I tried using the FloatProcessor(), but I think it is not supposed to capture audio. (Did also not work)
Please help me by pointing at maybe other possible approaches. If you need more code I can post it too.
Thanks in advance.