Quantcast
Channel: Photon Voice — Photon Engine
Viewing all 671 articles
Browse latest View live

Voice Echo without Headphone

$
0
0
Hi,
We are developing application with photon voice. Its working well with headphones, but without headphones It is giving echo repeatedly.
One more issue with iPhone, Head phone does not connect when application running state.

Photon version -Pun:2.5 ;Photon lib:4.1.2.4
Unity Version - 2018.2.16f1

Thanks.

Getting clean voice

$
0
0
We've recently added Photon Voice to a VR project we're working on. The quality is okay but at times we do have a lot of, what I assume to be, dropped packets because quality degrades to the point of being unusable. I've not dug too much into the voice scripts and I do see some settings for bit and sample rate but am not sure if that's the right avenue to pursue. Also, we're using Photon Cloud and the free tier but plan to upgrade, though on the site it doesn't say anything about higher/more reliable band with with a paid subscription. Both users are in the US east and on pretty beefy connections. Anyone have any suggestions on getting voice clean?

Constant ducking. Voice audio cuts out every 1 second or so

$
0
0
Hi
I'm using the basic vanilla demos of Voice 2 with PUN. The voice audio just cuts out constantly about every one second. Using all default settings and have tried adjusting codecs but exactly same problem.
Example: If I speak a long constant tone "say ahhhhh" into the mic the audio gets chopped up like its on then off. So its like a repetitive stutter.
Using debug echo I can hear this constantly even if I'm not speaking into the mic. Speaker audio is off as I am using headphones to esnure minimal background noises.

This makes it practically impossible to have audio conversation. Tested onvarious PC's with good net connection.
Is there some setting that sets how much audio data is transferred?

I cannot figure out whats causing this on a clean installl using the simple demos?

Thanks
A

PUN Voice 2 Applying voice effects before sending to the receiver

$
0
0
Hi, So I have a audio mixer that is hooked up to the audio source in Unity. My goal is to apply pitch and flange effect before sending the voice to other players. The other players will receive the sender's modified voice. I assume if I send a RPC command to change the Pitch of the audio mixer that is connected to the photonview, it will change the mixer of all the clients so everyone will have the same effects as the sender. Is there any way to apply sound effects before sending to the receiver while the receiver maintains his/her current sound effects? My goal is to make an environment where people can have different voices (not their own one) and talk to each other online. Thanks

Photon Microphone support for Oculus Quest

$
0
0
I have built the Photon 'DemoVoicePUN-scene' demo for Voice 2 in Unity and added support for Oculus Quest. I managed to get it working well using the 'Unity Microphone' setting but noticed that the audio quality - although very good, is not quite matching the Oculus Party chat quality (I increased it 48KHz + 45Kmb/s too). I assumed that this might be something to do with the noise cancelation and so tried to enable the Photon Mic option instead of the Unity mic, but then I get no audio at all. Does the Photon Mic support Quest? Is it likely to improve the voice quality, or should I be looking at other mechanisms?

Add a Pitch Shift Process on voice before transmitting

$
0
0
Hi
If anyone could help really appreciated as my coding is limited.
Photon devs have been quite helpful in suggestions but sadly its beyond my comprehension create such.

I want to add a fixed pitch shift (chipmunks style) to the live voices either post or pre whichever is most efficient and simple.
I tried changing pitch on the AudioSource however this seems to create some kind of in/out stuttering problems on the sound.
Suggestion is to create a custom procesor looking at WebRtcAudioDsp.cs as an example and adding/using Voice.LocalVoiceAudio<T>.IProcessor. This bit is above my coding ability LOL.
I simply want IF possible a small script to drop on my recorder object such that it sets the pitch shift by a specified amount public float variable.

I'm at a technical loss and grealy appreciate if anyone has the insight to create such?
Many thanks
A

help getting demo to work

$
0
0
Brand new project using 2018.4 LTS version, nothing but photon voice 2. Build the DemoVoicePun scene and run it on two pc's. The debug works (I can hear myself) but neither pc can hear the other. Any ideas? Seems like the demo scene should work without having to change anything, isn't that the point?

Unity iOS Crash when starting recorder

$
0
0
Hi,
My App crashes about 25% of the time when joining a room and starting a recording (instantiating a prefab containing a PhotonVoiceView component). If I don't start the recording everything is fine.

Xcode shows the crash in AudioIn.mm in function performRender, line 131:
cd.pushCallback(cd.pushHostID, (float*)data.bytes, (int)data.length/sizeof(float));

Using PUN2 (2.17) and Voice2 (2.13), Unity 2019.2.21f1

Any help appreciated, it's awesome when it works, would love to be able to enable voice!
Thanks

PhotonGUI does not exist in the current context

$
0
0
I am using Unity 2019.2.4f1. Opened new project. Downloaded PUN 2 from unity asset store and no problems. I downloaded Photon Voice 2 and I get this error:

Assets\Photon\PhotonUnityNetworking\UtilityScripts\PhotonPlayer\Editor\PhotonTeamsManagerInspector.cs(140,22): error CS0103: The name 'PhotonGUI' does not exist in the current context

I prefer not to touch scripts that are from the plugin. Would be nice if it worked from the get go.

photon Voice over rooms

$
0
0
Hi,

we would like to create different photon rooms to build several multiplayer groups.
Everything ok so far. But a supervisor would like to talk via voice chat to all rooms at the same time.

Does anybody have a solution for that?
It would be nice only using photon Voice 2 together with PUN2, not more :-)

Thanks a lot.
Greetings, LittleMatjes

IL2CPP with Photon Microphone

$
0
0
Hello!
I had an issue with Photon voice where sound input of Android users was not received on other devices. I fixed it by switching the microphone type from Photon to Unity. However, the Photon mic type was really useful previously due to its echo cancellation feature. My question is does Photon Voice currently support IL2CPP? If not, will we get the feature in the near future?

(Using Unity 2018.4.10f1 with latest version of Photon Voice 2, if that matters)
Thanks!

Help! Connection issues

$
0
0
Good night everyone, I have an issue in order to connect to Photon Server, I already had functional project but since today stop working, someone knows if Photon Services are down?
I have a Unity project 2019.2.0f1 with Photon Voice 2 from Asset Store, I did several tests:
- I change the fixed region and the port configuration in PhotonServerSettings
- In Android version the application crash
- In Standalone version the application works but every player connects to a "different room"
- I created a new application in Photon Server and didn't works.
- I re coppied the plugins and reimport the asset into my project.
- I went to a previous revisions of my project, where suposse it was working , I think that is a Photon problem but the service status says is all okay. https://www.photonengine.com/status
-If some of you have some of information about this issue please let me know.
Thank you!

WebGL and Photon Voice

$
0
0
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.

Bolt + Voice v2.14

$
0
0
Hi!
I'm trying to make Bolt work with Voice v2.14. And it seems it's not compatible. When I use Bolt tutorial scripts provided by docs, I get an error on the server side:
MissingMethodException: void Photon.Realtime.Room.SetCustomProperties(ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <58a34b0a618d424bb5fc18bb9bcdac20>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
UdpKit.Platform.Photon.Coroutine.RoutineManager:Update()

Could you give me advice of how to resolve this or could I get Voice package v2.13 somewhere?
Thanks!

Photon Voice will NOT work

$
0
0
Hi all, I just cannot get Photon Voice to work and I've tried everything for over 3 days now. I am not getting any audible voice on either my iPad or iOS device. On iOS 13.3.1, Unity 2019.30f5, and Voice 2.14 latest download. I have a Recorder in my scene with Debug Echo on. Auto start and transmit checked. Microphone type was tried with both Unity and Photon. Think the device defaults to the microphone on device but I created some code to make sure it selects device[0] at runtime to be sure. Speakers are on all the avatars along with Voice Views with Setup Debug Speaker checked as well as Use Primary Recorder. Each Voice View's Speaker in Use set to each avatar's speaker component. I had issues with crashing when using Photon microphone type which was a whole other issue on this thread:

forum.photonengine.com/discussion/comment/50087#Comment_50087

So while that fix keeps Photon microphone type for crashing out I still never have gotten sound through when using either Photon or Unity microphone type. I have also compiled and run the Voice demos on both devices and same thing. No audible sound whatsoever either via debug mode or between networked devices. The debug text in the demo shows Amp average and peak at 0.0000000 always. What am I missing?? I cannot get any of this work and pulling my hair out.

Voice crackling / clicking on iOS

$
0
0
Hi!

Whenever we chat, the audio is crackling constantly (1-2 times per second). We can understand each other fine but it sounds like someone is typing on a very loud keyboard as we speak. This seems to only happen with the Photon type microphone. Unity type is fine but the echo is impossible so not an option for us (unless you know of a way to fix the Unity type mic echo?).

I'm using photon type microphone and VoIP preset, Voice 2.13, Unity 2019.2.21f1
Server protocol is set to UDP.
Prepare iOS for recording: enabled
Force iOS Speakers when Recording: enabled

I have tried:
- removing the Mic Amplifier (as suggested in another post): no effect
- frames 10/20/40ms: no effect
- bitrate from 30k to 10k: no effect
- sampling rate 48k, 24k, 16k, 12k: no effect
- VAD threshold: 0.01, 0.05, 0.1: no effect
- reliable mode: no effect

I don't think it is a bandwidth problem (100mbps wifi network)

I saw some older post talking about "Play Delay ms", does it still exist? is it the VAD Delay (ms) ? What about Update Interval(ms)?

Would love to fix or even reduce the crackling a bit!

Thanks

how to find latency between audio sent and audio arriving on another client | Unity

$
0
0
so iv been doing a massive amount of digging through photon voice's code for the last couple days and i'm trying to find the latency between the audio being sent from player 2, and arriving at player 1 (not when it plays).

i'm thinking something with using server time and calculating the difference between it being sent, and arriving, i think ill put the calculation for when it has arrived on the photon speaker component under "OnAudioFrame" but where do i put the the piece of code that takes the timestamp from when the audio frame was sent?

i hope that's clear enough, anyone have any idea?
Thanks!

Photon voice 2 input source type: Photon not working

$
0
0
When the input type is set to unity it is working. But whe set to photon its not working on few machines. We found mutliple mics on those machines, but tried setting the mic to default one and it did not work. ANy other possible reasons for the failure ?

Microphone not reconnecting upon application unpause on iOS

$
0
0
I can see other players, I can hear other players, but they can't hear me.

iOS
join room - using autoconnectandjoin checkbox on PhotonVoiceNetwork
swipe to go to home screen, and come back
no more mic

in OnApplicationPause
tried a bunch of things (resetting mic, disconnecting/reconnectnig, never comes back?

What am I doing wrong!?

Photon Voice 2 not working on Oculus Quest (Unity3D)

$
0
0
I have created a VR multiplayer room using PUN2 which works well and I'm trying to add a voice chat support. I have followed meticulously the installation guide (https://doc.photonengine.com/en-us/voice/current/getting-started/voice-for-pun) and I'm able to activate the Debug echo and hear myself once in the room. The problem is that when I test with 2 Quest or a 1 Quest and the editor I cannot hear a sound. The current setup is the following:
  • 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.
No specific error gets displayed in the log (I'm able to provide a text file but I would prefer not posting it in on the forum). As previously mentioned, the Debug mode works well (Setup Debug Speaker + Debug Echo). Please find in attachment the screenshots of all the objects configuration. https://ibb.co/3B8nFV8 https://ibb.co/DK6hkWY https://ibb.co/VTtfG4R https://ibb.co/V2rx8C0 https://ibb.co/qdrHY00 https://ibb.co/yBzmTPb https://ibb.co/mFY375Q https://ibb.co/w0FpPdJ https://ibb.co/Hxbwk3y
Viewing all 671 articles
Browse latest View live