Hi,
I'm trying to figure out if it's possible to use any of the lip-syncing methods (except "From Speech Text") while playing voice files from Addressables. At the moment, I'm using Papagayo, and here's what the phonemes editor looks like
The text file I'm using:
MohoSwitch1
1 rest
3 rest
2 AI
6 etc
7 AI
8 etc
10 AI
12 etc
13 E
14 MBP
15 AI
17 L
18 etc
20 AI
22 etc
24 E
26 etc
30 E
32 etc
34 rest
The txt is saved in the Assets/Resources/Lipsync folder using the same file name as the corresponding audio file. However, all the audio files are in the Assets/Audio/Speech folder.
I tried debugging it by modifying the Dialog.cs file as you suggested in other topics but I couldn't see anything in the console which made me think that the files were found.
What needs to be done to make it work? I can only see the first frame of the sprite.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @digistrats.
The method of reading Lipsync files and Audio files are always the same: if you're using Addressables for audio, you'll similarly need to use Addressables for lipsyncing.
You should fine that the Speech Manager displays a "Lipsync key" field for a given speech line, beneath the "Speech key". This'll need to be unique to the speech key, so enter e.g. "Lipsync_" into the Addressable prefix box to make this separate if you're not using a prefix for speech.
It should then just be a case of marking your lipsync files with the displayed key. First, however, move them out of the Resources folder, as Unity prevents Addressables mixing with Resources.
Thank you for the response!
I put Lipsync_ into the Addressable prefix box, moved the Lipsync folder out of Resources, and marked the lipsync text files as Addressables.
After gathering text in the Speech Manager I can't seem to make the Lipsync key displayed, there is only a Speech key.
Is there anything else that I'm missing?
Could you share a screenshot showing your Speech Manager in full, with a typical speech line selected at the bottom?
Here is the manager https://www.dropbox.com/scl/fi/aszt8jrc070l3iqvlgi03/Screenshot-2024-03-20-at-12.50.11.png?rlkey=4gse8est0rqwrikgitow4avlr&dl=0, though I can't seem to select any of the lines at the bottom.
I can only see the Speech Manager ID in the ActionList editor https://www.dropbox.com/scl/fi/lrqqt8mak66xihnqnswbf/Screenshot-2024-03-20-at-12.50.20.png?rlkey=4axq898vpmms2y3hq5euiorte&dl=0
To be clear: the ID number is shared by both speech and lipsync files.
Use the filtering options at the bottom of the Speech Manager to get your speech lines to show. Try setting the Scene filter to (Any or no scene). That should cause all speech lines to display.
Thank you so much! I can see it now and know what to do.
Have a good day☀️