Forum Discussion
vivekrajagopal
3 years agoMHCP Member
Meta Avatars 2 Lipsync - PUN 2 & Photon Voice issue!
Dear Devs, I'm struggling with problem since a week. I use PUN 2 and Photon Voice to bring Meta Avatars 2 in a multiplayer environment. Below are my issues, 1. When there is no Photon Voice se...
- 3 years ago
Dear Developers,
I've found a proper fix for this issue. I've explained it in my blog that might help you.
Please check this blog: https://medium.com/@vivekrajagopal_84414/meta-avatars-2-and-photon-unity-voice-issue-lipsync-pun-voice-resolved-6a7c5d229b1c
- 3 years ago
Dear Developers,
Hi, I've found a proper fix for this issue. I've explained it in my blog that might help you.
Please check this blog: https://medium.com/@vivekrajagopal_84414/meta-avatars-2-and-photon-unity-voice-issue-lipsync-pun-voice-resolved-6a7c5d229b1c
olaysia
3 years agoExpert Protege
violinviolin19 wrote:Hi olaysia, thanks so much for the information! This has really helped my project. Would you also be able to share the lip sync clip updater? I am not able to get mine to work properly.
Sure! Firstly let me describe some of my additional setup:
- Find the LipSyncInput gameobject in your scene.
- Remove LipSyncMicInput.
- Set OvrAvatarLipSyncContext to use the AudioSource.
- Add this RuntimeAudioClipUpdater to the object.
It's purpose is to check if your central microphone's audio clip has changed. If it has, it replaces the AudioSource's clip to the same as that on your central microphone.
public class RuntimeAudioClipUpdater : MonoBehaviour
{
AudioSource audioSource;
private void Start()
{
audioSource = GetComponent<AudioSource>();
}
void Update()
{
if (audioSource != null)
{
AudioClip clip = audioSource.clip;
AudioClip referenceClip = GGMicrophone.Instance.GetMicrophoneAudioClip();
if (referenceClip != null)
{
int referenceClipId = referenceClip.GetInstanceID();
if (clip != null)
{
int currentClipId = clip.GetInstanceID();
if (currentClipId != referenceClipId)
{
//audioSource.Stop();
audioSource.clip = referenceClip;
audioSource.Play();
}
}
else
{
//audioSource.Stop();
audioSource.clip = referenceClip;
audioSource.Play();
}
audioSource.timeSamples = GGMicrophone.Instance.GetPosition();
}
}
}
}
vivekrajagopal
3 years agoMHCP Member
Dear Developers,
Hi, I've found a proper fix for this issue. I've explained it in my blog that might help you.
Please check this blog: https://medium.com/@vivekrajagopal_84414/meta-avatars-2-and-photon-unity-voice-issue-lipsync-pun-voice-resolved-6a7c5d229b1c
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago
- 5 months ago
- 3 months ago
- 1 year ago