problem with photon voice threshold slider

Options

HI, im trying to add voice chat in my game but i found a problem before starting the game i set the threshold to 0.3, but when i play the game its always set to 0, no matter what, i also tried via script but that didnt work either, could i possibly know why and how can i fix it?

Answers

  • chuckyw
    Options

    Hi, this will be fixed in the new release (which is comming soon). In the meantime, you can fix it by removing all calls to GetThresholdFromDetector() in Recorder and the method itself, except the one in Recorder.VoiceDetectorCalibrate() where you should replace it by:

    this.voiceDetectionThreshold = this.VoiceDetector.Threshold;