Type or namespace name PhotonVoiceNetwork could not be found

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Voice.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Type or namespace name "PhotonVoiceNetwork" could not be found

LordBinz
2022-11-28 03:49:17

Hello!

Ive encountered a problem when setting up PUN 2, Photon Voice 2, and the "VR Oculus Quest MFPS Photon PUN2 PRO" package.

The issue is not being able to find PhotonVoiceNetwork in any of the scripts, Ive searched through all of the available scripts in Photon Voice 2 - thought I was close and it had been renamed to "PhotonNetwork" in some update, however that wasnt the case.

My question is, has anyone else found this issue? And if so, have you been able to fix it?

Thanks!

Comments

LordBinz
2022-11-28 07:17:18

Alright, ive solved the issue. Sorry for wasting anybodys time.

  • Ill give you my method: So, theres 2 scripts that are the issue. "Left Hand Menu" and "Voice Manager"

  • you need to edit both of these scripts and replace "PhotonVoiceNetwork -> PunVoiceClient"

  • that will fix the two scripts and you may continue on! to the next problem!

  • likely you will then get 7 new errors!

  • that look like this: "error CS1061: 'Recorder' does not contain a definition for 'AutoStart' and no accessible extension method 'AutoStart' accepting a first argument of type 'Recorder' could be found (are you missing a using directive or an assembly reference?)"

  • So im going to be working on that part now

I will probably edit this to give anyone else with the same problem the way forward.

EDIT: Did the rest of the edits. Works great now.

  • 1st error fix = voicemanager script, line 55 -> change .IsRecording to RecordingEnabled

  • 2nd error fix = voicemanager script, line 65 -> same fix

  • 3rd error to 7th error fix -> voicemanager script, lines 25, 34, 35, 56, and 64 - change AutoStart to RecordingEnabled

vadim
2022-12-02 13:14:32

Please check Assets/Photon/PhotonVoice/changes-voice.txt for migration guide and breaking changes list when upgrading to Photon Voice version 2.50

Back to top