To use Photon Voice 2 decoupled with any PUN - is there an example somewhere or what components should I have in the scene and on the player?
↧
Photon Voice 2 decoupled
↧
How Do I Use Photon Voice 2 with Bolt?
I'm developing a multiplayer VR app in Unity 2019.4.4f1 in the Android platform for the Oculus Quest. I haven't been able to find any tutorials or other guidance for setting up Photon Voice 2 with Bolt. I reviewed the documentation for Voice 2 and see a page called "Voice for PUN 2" as well as "PUN Voice Demo" tutorial, but no guidance specifically for Voice 2 and Bolt. And I couldn't find any applicable demo scenes in the Photon assets installed in my Unity project.
Can anyone provide guidance? Thanks!
Can anyone provide guidance? Thanks!
↧
↧
Audio using internal speaker when recording with with iOS14
Hi,
It looks like on iOS 14 the audio isn't forced to speaker anymore when recording. It used to work fine before, but now when the microphone starts, the audio is rerouted to the earpiece. If I stop/start the recording I can hear the audio switching from one to the other.
I tried using the forceToSpeaker script or calling SetIosAudioSessionParameter in a lot of different places, but that had no effect.
my setup:
Unity 2020.1.4f1, Photon voice 2.21
- using photon microphone
- mode: voice chat
- category: play and record
- options: default to speaker
Any help appreciated. Thanks!
It looks like on iOS 14 the audio isn't forced to speaker anymore when recording. It used to work fine before, but now when the microphone starts, the audio is rerouted to the earpiece. If I stop/start the recording I can hear the audio switching from one to the other.
I tried using the forceToSpeaker script or calling SetIosAudioSessionParameter in a lot of different places, but that had no effect.
my setup:
Unity 2020.1.4f1, Photon voice 2.21
- using photon microphone
- mode: voice chat
- category: play and record
- options: default to speaker
Any help appreciated. Thanks!
↧
Photon Voice I can hear my own echo
Hi there!
What could be the reason why I can hear my own voice with a small delay when using Photon Voice? Debug Echo is disabled. This happens both on my and on Demo scene. Thanks in advance
What could be the reason why I can hear my own voice with a small delay when using Photon Voice? Debug Echo is disabled. This happens both on my and on Demo scene. Thanks in advance
↧
Android/Focus+ ,Photon Voice detection microphone
Hello,
Sorry in advance for my english.
I use photonVoice for PC and everything works, i switch for android, i add in the manifest
<uses-permission android:name="android.permission.RECORD_AUDIO" />
and i use permission for the focus.
Permission ok but when i go in my scene where is photonVoice, it can't find the microphone, he return 0 when i do Recorder.PhotonMicrophoneEnumerator.Count.
And i have these errors.
![mkKFpuB.png]()
Thanks for reading this post.
Sorry in advance for my english.
I use photonVoice for PC and everything works, i switch for android, i add in the manifest
<uses-permission android:name="android.permission.RECORD_AUDIO" />
and i use permission for the focus.
Permission ok but when i go in my scene where is photonVoice, it can't find the microphone, he return 0 when i do Recorder.PhotonMicrophoneEnumerator.Count.
And i have these errors.

Thanks for reading this post.
↧
↧
Photon Voice with SpeechToText library
Hello there,
So I've been using Photon Voice and Photon Network for one of my project.
Recently I added a speech to text library and that's where troubles started.
There seems to be a conflict between PV and this library as they both try to get the mic input on Oculus Quest.
Everything works fine on PC though which is very strange.
Do you guys have any clue on a work around or what is the problem?
I've tried to "disable" one when the other is "enable" but that doesn't work on Quest either. Maybe it is just my way of doing it that is wrong.
As a use case example, when I use the speech to text API while being offline, it works. Then I go online and offline, and try again and it doesn't work anymore. And even when I quit the app and relaunch it, the speech to text library still doesn't work even offline. So I need to deinstall and reinstall the whole app for it to work again..
Thanks in advance and have a good day !
So I've been using Photon Voice and Photon Network for one of my project.
Recently I added a speech to text library and that's where troubles started.
There seems to be a conflict between PV and this library as they both try to get the mic input on Oculus Quest.
Everything works fine on PC though which is very strange.
Do you guys have any clue on a work around or what is the problem?
I've tried to "disable" one when the other is "enable" but that doesn't work on Quest either. Maybe it is just my way of doing it that is wrong.
As a use case example, when I use the speech to text API while being offline, it works. Then I go online and offline, and try again and it doesn't work anymore. And even when I quit the app and relaunch it, the speech to text library still doesn't work even offline. So I need to deinstall and reinstall the whole app for it to work again..
Thanks in advance and have a good day !
↧
Photon Voice UWP Build Errors
I am using Unity 2019.4.10. I am able to import Photon Voice (version 2.21) and while playing on the editor I get no errors but when trying to build for UWP I get 76 errors.
Here are some of the errors:
1. Assets\Photon\PhotonVoice\Code\Editor\WebRtcAudioDspEditor.cs(9,41): error CS0118: 'Editor' is a namespace but is used like a type
2. Assets\Photon\PhotonVoice\Code\Editor\ExitPlayModeOnScriptCompile.cs(10,2): error CS0246: The type or namespace name 'InitializeOnLoadAttribute' could not be found (are you missing a using directive or an assembly reference?)
3. Assets\Photon\PhotonVoice\Code\Editor\VoiceConnectionEditor.cs(60,30): error CS0115: 'VoiceConnectionEditor.OnInspectorGUI()': no suitable method found to override
4. Assets\Photon\PhotonVoice\Code\Editor\SpeakerEditor.cs(8,34): error CS0118: 'Editor' is a namespace but is used like a type
Here are some of the errors:
1. Assets\Photon\PhotonVoice\Code\Editor\WebRtcAudioDspEditor.cs(9,41): error CS0118: 'Editor' is a namespace but is used like a type
2. Assets\Photon\PhotonVoice\Code\Editor\ExitPlayModeOnScriptCompile.cs(10,2): error CS0246: The type or namespace name 'InitializeOnLoadAttribute' could not be found (are you missing a using directive or an assembly reference?)
3. Assets\Photon\PhotonVoice\Code\Editor\VoiceConnectionEditor.cs(60,30): error CS0115: 'VoiceConnectionEditor.OnInspectorGUI()': no suitable method found to override
4. Assets\Photon\PhotonVoice\Code\Editor\SpeakerEditor.cs(8,34): error CS0118: 'Editor' is a namespace but is used like a type
↧
Photon Voice UWP Build Errors
I am using Unity 2019.4.10. I am able to import Photon Voice (version 2.21) and while playing on the editor I get no errors but when trying to build for UWP I get 76 errors.
Here are some of the errors:
1. Assets\Photon\PhotonVoice\Code\Editor\WebRtcAudioDspEditor.cs(9,41): error CS0118: 'Editor' is a namespace but is used like a type
2. Assets\Photon\PhotonVoice\Code\Editor\ExitPlayModeOnScriptCompile.cs(10,2): error CS0246: The type or namespace name 'InitializeOnLoadAttribute' could not be found (are you missing a using directive or an assembly reference?)
3. Assets\Photon\PhotonVoice\Code\Editor\VoiceConnectionEditor.cs(60,30): error CS0115: 'VoiceConnectionEditor.OnInspectorGUI()': no suitable method found to override
4. Assets\Photon\PhotonVoice\Code\Editor\SpeakerEditor.cs(8,34): error CS0118: 'Editor' is a namespace but is used like a type
Here are some of the errors:
1. Assets\Photon\PhotonVoice\Code\Editor\WebRtcAudioDspEditor.cs(9,41): error CS0118: 'Editor' is a namespace but is used like a type
2. Assets\Photon\PhotonVoice\Code\Editor\ExitPlayModeOnScriptCompile.cs(10,2): error CS0246: The type or namespace name 'InitializeOnLoadAttribute' could not be found (are you missing a using directive or an assembly reference?)
3. Assets\Photon\PhotonVoice\Code\Editor\VoiceConnectionEditor.cs(60,30): error CS0115: 'VoiceConnectionEditor.OnInspectorGUI()': no suitable method found to override
4. Assets\Photon\PhotonVoice\Code\Editor\SpeakerEditor.cs(8,34): error CS0118: 'Editor' is a namespace but is used like a type
↧
Recorder.PhotonMicrophoneEnumerator.IDIsValid(id) always returns true if Id is 0 or higher
Please implement actual validation to it.
↧
↧
PhotonVoiceNetwork and the SpeakerPrefab
It doesn't look like the SpeakerPrefab property is ever used in the PhotonVoiceNetwork class.
Pretty confusing as I expected it to create the prefab if I didn't have one in the scene.
Photon Voice v2.21 (September 8th, 2020)
Pretty confusing as I expected it to create the prefab if I didn't have one in the scene.
Photon Voice v2.21 (September 8th, 2020)
↧
The type or namespace name 'SocketUdpNativeDynamic' could not be found?
Just imported the latest version of photon voice and i get this while building for android.
Assets\Photon Unity Networking\PhotonChatApi\ChatPeer.cs(56,82): error CS0246: The type or namespace name 'SocketUdpNativeDynamic' could not be found (are you missing a using directive or an assembly reference?)
Assets\Photon Unity Networking\PhotonChatApi\ChatPeer.cs(56,82): error CS0246: The type or namespace name 'SocketUdpNativeDynamic' could not be found (are you missing a using directive or an assembly reference?)
↧
Current Buffer Lag - reduce faster in Speaker
In the Speaker component using PUN for Voice (v2), there's a display for "Current Buffer Lag". It seems to reflect the current lag from speaking to hearing in 10ths of ms (it usually hovers around 8500 and is about 0.85s of lag).
Sometimes for whatever reason (dropped signal, pausing, resizing window etc) the buffer lag increases, sometimes getting as high as 30000 - 3 full seconds lag. When it does this, it automatically "chipmunks" the voice to play it back faster, and brings the buffer lag back to normal, around 8500.
My Q is, how can I control this? It happens very slowly, with chipmunking often lasting 10-15 seconds for a few seconds of lag. I'd like to make the lag accommodation go faster, or - ideally - control the samples themselves. For example, skipping every other sample to make the voice talk very fast, rather than just compressing samples together and raising the pitch.
How can I modify/access that? Thanks!
Image shows the component with buffer lag quite high, at 2.6secs:
![xKboElp.png]()
Sometimes for whatever reason (dropped signal, pausing, resizing window etc) the buffer lag increases, sometimes getting as high as 30000 - 3 full seconds lag. When it does this, it automatically "chipmunks" the voice to play it back faster, and brings the buffer lag back to normal, around 8500.
My Q is, how can I control this? It happens very slowly, with chipmunking often lasting 10-15 seconds for a few seconds of lag. I'd like to make the lag accommodation go faster, or - ideally - control the samples themselves. For example, skipping every other sample to make the voice talk very fast, rather than just compressing samples together and raising the pitch.
How can I modify/access that? Thanks!
Image shows the component with buffer lag quite high, at 2.6secs:

↧
How to implement both 2D and 3D spatial audio effect in one room?
Greetings,
I'm using Photon Voice and have implemented 3D spatial audio effect by setting "Audio Source -> Spatial Blend" of Speaker to 1. Now I want to have one player in the room who can hear every other user's voice without moving close to them. But how can I implement this feature while not influencing 3D spatial effect?
I'm using Unity 2019.4.11 & Photon Voice 2.22.2
The setting of Photon Voice is the same as suggested in the tutorial: https://doc.photonengine.com/en-us/voice/current/getting-started/voice-for-pun#suggested_workflow
Thanks in advance!
I'm using Photon Voice and have implemented 3D spatial audio effect by setting "Audio Source -> Spatial Blend" of Speaker to 1. Now I want to have one player in the room who can hear every other user's voice without moving close to them. But how can I implement this feature while not influencing 3D spatial effect?
I'm using Unity 2019.4.11 & Photon Voice 2.22.2
The setting of Photon Voice is the same as suggested in the tutorial: https://doc.photonengine.com/en-us/voice/current/getting-started/voice-for-pun#suggested_workflow
Thanks in advance!
↧
↧
connected but no voice can be heard
i'm working on unity 2019.2.8f1 , and here's problem:
i can heard myself by enable "debug echo" , and i know that another player is successfully connect to voice room by watching console log , but i just can't heard anything in both side.
i try to update to latest version , but still don't work.
please help me.
i can heard myself by enable "debug echo" , and i know that another player is successfully connect to voice room by watching console log , but i just can't heard anything in both side.
i try to update to latest version , but still don't work.
please help me.
↧
Can you keep the user in the room even if the scene changes?
hello.
I am developing in Unity using Photon and Photon Voice.
We are using 3 scenes, and in the second scene we create a voice room and engage users.
However, at the moment of going to the third scene, the prefabs of the users who were chatting in the voice room were deleted and the conversation was cut off.
I'm still a programming newbie, so I don't know how to solve this situation.
When I go to the 3rd scene and when I return to the 2nd scene, I hope the conversation will continue until the user directly presses the Leave Room button.
What would you like to do?
Thanks.
I am developing in Unity using Photon and Photon Voice.
We are using 3 scenes, and in the second scene we create a voice room and engage users.
However, at the moment of going to the third scene, the prefabs of the users who were chatting in the voice room were deleted and the conversation was cut off.
I'm still a programming newbie, so I don't know how to solve this situation.
When I go to the 3rd scene and when I return to the 2nd scene, I hope the conversation will continue until the user directly presses the Leave Room button.
What would you like to do?
Thanks.
↧
How to save the whole conversation?
Greetings,
I'm using Photon Voice and want to record every user's voice in the room on one client's end, and I found this documenton the official website. But I can't find any of them in any namespace or class, and WebRtcAudioDsp.cs doesn't exist. So my question is how to use it?
For reference, the Unity version I'm using is 2019.4.11, and Photon Voice is 2.22.2.
Thanks in advance!
I'm using Photon Voice and want to record every user's voice in the room on one client's end, and I found this documenton the official website. But I can't find any of them in any namespace or class, and WebRtcAudioDsp.cs doesn't exist. So my question is how to use it?
For reference, the Unity version I'm using is 2019.4.11, and Photon Voice is 2.22.2.
Thanks in advance!
↧
Photon microphone failed. Falling back to Unity microphone
AndroidPlayer(samsung_SM-A705FN@192.168.1.2) [Voice Connection and Recorder.Recorder] 2020-12-19T18:15:53:[PV] UnityAndroidAudioInAEC: UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.exitgames.photon.audioinaec.AudioInAEC$DataCallback
AndroidPlayer(samsung_SM-A705FN@192.168.1.2) [Voice Connection and Recorder.Recorder] 2020-12-19T18:15:53:Photon microphone input source creation failure: UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.exitgames.photon.audioinaec.AudioInAEC$DataCallback
at UnityEngine.AndroidJNISafe.CheckException () [0x0008d] in /Users/bokken/buildslave/unity/build/Modules/AndroidJNI/AndroidJNISafe.cs:24
AndroidPlayer(samsung_SM-A705FN@192.168.1.2) [Voice Connection and Recorder.Recorder] 2020-12-19T18:15:53:Photon microphone failed. Falling back to Unity microphone
AndroidPlayer(samsung_SM-A705FN@192.168.1.2) [Voice Connection and Recorder.Recorder] 2020-12-19T18:15:53:Photon microphone input source creation failure: UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.exitgames.photon.audioinaec.AudioInAEC$DataCallback
at UnityEngine.AndroidJNISafe.CheckException () [0x0008d] in /Users/bokken/buildslave/unity/build/Modules/AndroidJNI/AndroidJNISafe.cs:24
AndroidPlayer(samsung_SM-A705FN@192.168.1.2) [Voice Connection and Recorder.Recorder] 2020-12-19T18:15:53:Photon microphone failed. Falling back to Unity microphone
↧
↧
WebGL and Photon Voice
Is there any plan for WebGL support? I understand that the voice related functionality needs threading that needs local resources access. Would be wonderful to get this WebGL supported. I have a need where game can not be installed on local machine.
↧
MacOS Build Fail: Microphone Usage Description is empty
Hi, I am a bit new to Photon have built a simple FPS with voice chat, which works great every time for Windows, but when I try to build a version for mac I get the two errors:
and
Microphone class is used but Microphone Usage Description is empty. App will not work on macOS 10.14+. UnityEditor.OSXStandalone.OSXDesktopStandalonePostProcessor:RenameFilesInStagingArea(BuildPostProcessArgs) DesktopStandalonePostProcessor:SetupStagingArea(BuildPostProcessArgs, HashSet`1) DesktopStandalonePostProcessor:PostProcess(BuildPostProcessArgs) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
and
Exception: A required capability description is not set. UnityEditor.OSXStandalone.OSXDesktopStandalonePostProcessor.UpdateInfoPlist (UnityEditor.Modules.BuildPostProcessArgs args, System.String path, System.String executableName) (at /Users/bokken/buildslave/unity/build/PlatformDependent/OSXPlayer/Extensions/Managed/OSXDesktopStandalonePostProcessor.cs:236
↧
How to debug connections and disconnects in an Android Build on Oculus Quest
Hi,
I currently work on a VR app for the Oculus Quest 1 & 2 and the network and voice chat is generally working fine but we experienced some disconnects - but primarily in the build. So I cant reproduce the issue on my pc to debug the issue effectively - so I have found the "Support Logger" setting on the PhotonVoiceNetwork but I don't know how and where to find those logfiles.
Can someone please poke me in the right direction?
Cheers Vincent
I currently work on a VR app for the Oculus Quest 1 & 2 and the network and voice chat is generally working fine but we experienced some disconnects - but primarily in the build. So I cant reproduce the issue on my pc to debug the issue effectively - so I have found the "Support Logger" setting on the PhotonVoiceNetwork but I don't know how and where to find those logfiles.
Can someone please poke me in the right direction?
Cheers Vincent
↧