Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which example provide lipsync as show below #27

Open
GeorgeS2019 opened this issue Sep 13, 2024 · 1 comment
Open

which example provide lipsync as show below #27

GeorgeS2019 opened this issue Sep 13, 2024 · 1 comment

Comments

@GeorgeS2019
Copy link

GeorgeS2019 commented Sep 13, 2024

msedge_dSfb7qFf2f

godotengine/godot-proposals#9718 (comment)

  • chunk_to_lipsync
  • read_visemes
    ClassDB::bind_method(D_METHOD("chunk_to_lipsync", "resampled"), &AudioEffectOpusChunked::chunk_to_lipsync);
    ClassDB::bind_method(D_METHOD("read_visemes"), &AudioEffectOpusChunked::read_visemes);

var visemes = [ "sil", "PP", "FF", "TH", "DD", "kk", "CH", "SS", "nn", "RR", "aa", "E", "ih", "oh", "ou", "LA" ]

read_visemes()

if viseme != -1:
var vv = audioopuschunkedeffect.read_visemes();
for i in range($HBoxVisemes.get_child_count()):
$HBoxVisemes.get_child(i).size.y = int(50*vv[i])
#print(" vvv ", vv[-2], " ", vv[-1])
$HBoxVisemes.visible = true

@goatchurchprime
Copy link
Owner

There are two releases of the GDExtension addon you can download and copy into your Godot project, one with and one without (where the lipsync functions do nothing): https://github.com/goatchurchprime/two-voip-godot-4/releases/tag/v3.1

If you are on Windows you will need to copy the OVRLipSync.dll into the same directory as the Godot.exe you are running it from. I don't know how to fix this: #18

The Linux module in addons/twovoip_lipsync does no lipsync, but it is useful for when I am deploying from Linux to Android, though #15 is still an issue.

You might also find this repo interesting: https://github.com/goatchurchprime/lipsync

Does this answer your questions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants