# Introducing NeuroSync: Real-Time 60fps Audio-to-Face Animation with Transformer-Based Seq2Seq Neural Networks

**URL:** <https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352>\
**Category:** Character & Animation\
**Tags:** metahuman\
**Created:** [August 22, 2024, 11:34am UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352 "2024-08-22T11:34:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnimaIgnis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnimaIgnis](https://forums.unrealengine.com/u/AnimaIgnis)\
**Post date:** [August 22, 2024, 11:34am UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/1 "2024-08-22T11:34:34Z")

</div>

With NeuroSync, you can generate lifelike facial animations synced to audio in real time, making it a powerful tool for anyone working with character animation or virtual production.

**Model:** [AnimaVR/NEUROSYNC · Hugging Face](https://huggingface.co/AnimaVR/NEUROSYNC_Audio_To_Face_Blendshape)  
**Player:** [GitHub - AnimaVR/NeuroSync\_Player: The NeuroSync Player allows for real-time streaming of facial blendshapes into Unreal Engine 5 using LiveLink - enabling facial animation from audio input.](https://github.com/AnimaVR/NeuroSync_Player)  
**Local API:** [GitHub - AnimaVR/NeuroSync\_Local\_API: NeuroSync Audio to face animation local inference helper code.](https://github.com/AnimaVR/NeuroSync_Local_API)  
**NeuroSync YouTube Channel:** [https://www.youtube.com/@animaai\_mai](https://www.youtube.com/@animaai_mai)

- **Innovative Workflow:** NeuroSync introduces a unique real-time TTSA (text-to-speech + animation) workflow, seamlessly converting audio features into facial blendshapes and emotion data.
- **Real-Time Performance:** The model processes batches of audio feature frames and outputs corresponding face blendshapes and emotion data instantaneously.
- **Unreal Engine Integration:** Easily integrate NeuroSync with Unreal Engine via the LiveLink API to bring your characters to life.

---

<div class="post-metadata">

**Author:** ![tomhalpin8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomhalpin8](https://forums.unrealengine.com/u/tomhalpin8)\
**Post date:** [August 27, 2024, 6:09pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/2 "2024-08-27T18:09:45Z")

</div>

> [@AnimaIgnis](#):
>
> NeuroSync

How does one apply for the Alpha? Also, is this purely an API call for Unreal or does it work locally in engine similar to OVR Lipsync? Also does it compile to all platforms?

---

<div class="post-metadata">

**Author:** ![AnimaIgnis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnimaIgnis](https://forums.unrealengine.com/u/AnimaIgnis)\
**Post date:** [August 30, 2024, 8:42pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/3 "2024-08-30T20:42:23Z")

</div>

The model is quite small so we are hoping to be able to have it as a plugin that you can package with the game as its for generating face animations on the fly and it needs to be local to be of any use to anyone.

Latency can be as low as \<1.5 seconds (time to first speech) but with Elevenlabs its generally higher.

I will add a link to sign up for alpha access as soon as one is available here. 🙂

---

<div class="post-metadata">

**Author:** ![tomhalpin8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomhalpin8](https://forums.unrealengine.com/u/tomhalpin8)\
**Post date:** [September 5, 2024, 5:50pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/4 "2024-09-05T17:50:13Z")

</div>

What about an even smaller model for just mouth shapes for talking? 🙂

---

<div class="post-metadata">

**Author:** ![AnimaIgnis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnimaIgnis](https://forums.unrealengine.com/u/AnimaIgnis)\
**Post date:** [September 6, 2024, 11:13am UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/5 "2024-09-06T11:13:16Z")

</div>

This does even better than that, it adds emotion automatically when the audio is emotive and has the full 51 blendshapes for the entire face (no neck or tongue, yet).

Additionally to this, it outputs emotion values per frame for 7 emotions you can use to amend the current animation with further detail on a slider - future models will include basic neck and upper body/arms.

If you only want the mouth shapes you can only use the mouth dimensions and just map those, of course.

We are moving fast and will add any further updates on this thread. \<3

We are getting some good response times with a bit of chunking trickery! 🙂

---

<div class="post-metadata">

**Author:** ![tomhalpin8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomhalpin8](https://forums.unrealengine.com/u/tomhalpin8)\
**Post date:** [September 6, 2024, 9:36pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/6 "2024-09-06T21:36:22Z")

</div>

Looking forward to the release of the alpha to give it a try and see if it will work in my pipeline 🙂

---

<div class="post-metadata">

**Author:** ![Abood-AK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abood-AK](https://forums.unrealengine.com/u/Abood-AK)\
**Post date:** [November 8, 2024, 2:20pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/8 "2024-11-08T14:20:10Z")

</div>

Hello. Can you please guide me on how to connect NeuroSync to the MetaHuman? I have the NeuroSync working locally (Local API). Thanks.

---

<div class="post-metadata">

**Author:** ![AnimaIgnis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnimaIgnis](https://forums.unrealengine.com/u/AnimaIgnis)\
**Post date:** [November 14, 2024, 1:04am UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/9 "2024-11-14T01:04:44Z")

</div>

Helloo, it’s the same as if you were using LiveLink app on an iPhone. Just enable the LiveLink and ARKit plugins in your Unreal Project and then use [GitHub - AnimaVR/NeuroSync\_Player: The NeuroSync Player allows for real-time streaming of facial blendshapes into Unreal Engine 5 using LiveLink - enabling facial animation from audio input.](https://github.com/AnimaVR/NeuroSync_Player/) to stream into Unreal. Start with the play\_generated.py and it will stream a default animation so you can make sure its all linked with LiveLink.

Some software is coming that will simplify it all soon. 🙂

---

<div class="post-metadata">

**Author:** ![Loginn404](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Loginn404](https://forums.unrealengine.com/u/Loginn404)\
**Post date:** [November 15, 2024, 4:32pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/10 "2024-11-15T16:32:41Z")

</div>

To contribute to this amazing project and to help others like me who had doubts about how to use, install, and integrate it into Unreal, I created a basic tutorial that can provide guidance for those who are unsure about how to use it. If you have any suggestions, feel free to contact me for any assistance.

> **[CRIANDO UMA ASSISTENTE VIRTUAL COM AUDIO EM TEMPO REAL PARA À UNREAL](https://docs.google.com/document/d/1Bm2vLYXjAT6XKIhjDiFqfSlT0TTNyborX6C29KtKTio/edit?usp=sharing)**
>
> CRIANDO UMA ASSISTENTE VIRTUAL COM AUDIO EM TEMPO REAL PARA À UNREAL1-Parte: METAHUMAN/UNREALPrimeiro tenha à unreal 5.4 e tenha os seguintes plugins instalados e ativoslivelinkquixelbridgemetahuman pluginBaixe o metahuman no quixel quando terminar...

---

<div class="post-metadata">

**Author:** ![LewinWienecke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LewinWienecke](https://forums.unrealengine.com/u/LewinWienecke)\
**Post date:** [December 19, 2024, 9:29pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/11 "2024-12-19T21:29:38Z")

</div>

Hi! It’s an awesome tool. It works locally and directly interacts with LiveLink Face after being assigned in Unreal. How did you attach idle body animations and other actions? It would be really helpful to have a sample Unreal project to see the MetaHuman configurations.

---

<div class="post-metadata">

**Author:** ![lamnguyenx4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lamnguyenx4](https://forums.unrealengine.com/u/lamnguyenx4)\
**Post date:** [December 21, 2024, 2:16pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/12 "2024-12-21T14:16:25Z")

</div>

Hi there!

I just wanted to say **awesome work!** I’ve been using your model with Unity, and I’ve noticed it yields much better results than what you demonstrated on YouTube. Perhaps it’s because Unity is more lightweight?

Also, do you have any plans to release a technical write-up on arXiv? I’m interested in fine-tuning this model for my specific language.

Thanks!

---

<div class="post-metadata">

**Author:** ![AnimaIgnis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnimaIgnis](https://forums.unrealengine.com/u/AnimaIgnis)\
**Post date:** [December 29, 2024, 1:22pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/13 "2024-12-29T13:22:27Z")

</div>

Hello, really pleased you are having some positive results!

It’s likely working better due to some frame skipping that happens when I record my screen and run the model + unreal project - more a slow hardware thing than a difference in model performance.

There is a new version coming in the new year with some improvments and I will make sure to go into more detail about how we create the dataset and train the model - it does work for any language too, although the accuracy for lesser known languages is untested at the moment.

I shall keep this updated 🙂

---

<div class="post-metadata">

**Author:** ![AnimaIgnis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnimaIgnis](https://forums.unrealengine.com/u/AnimaIgnis)\
**Post date:** [December 29, 2024, 1:31pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/14 "2024-12-29T13:31:04Z")

</div>

Thanks Lew! The idle body animation is just a looped animation sequence in Unreal and the player streams the face into LiveLink.

As the body and face are separate we can blend to and from a default animation so its seamless (livelink is used constantly to stream the default animation and we blend to and from its current index for each new generated animation from the input audio).

You can add a default animation for the body using Unreals animation tools, either a sequence that loops or a level sequence that your character is controlled in, you just need to enable livelink on the face on whatever model you are using and make sure you dont overide it during runtime.

Its made so that there is very little required on the Unreal side other than enabling livelink on the face, even the basic thirdperson char idle will work as a looping idle to make it feel a bit more alive.

A LookAt node set to look at the camera or a fixed point (set in the FaceAnim\_BP) also helps make the eyes look less dead.

---

<div class="post-metadata">

**Author:** ![redagrandrei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redagrandrei](https://forums.unrealengine.com/u/redagrandrei)\
**Post date:** [January 17, 2025, 3:38pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/15 "2025-01-17T15:38:17Z")

</div>

@Animalgnis Hello, i do have this issue at the moment

**user@WINDOWS-JBQD9H0 MINGW64 /d/LLM/NeuroSyncLipSync/NeuroSync\_Player (main)**  
**$ python text\_to\_face.py**  
**pygame 2.6.1 (SDL 2.28.4, Python 3.12.4)**  
**Hello from the pygame community. [Contribute - pygame wiki](https://www.pygame.org/contribute.html)**  
**Enter the text to generate speech (or ‘q’ to quit): Hello**  
**Audio data saved to generated\e636a60d-5822-4489-8481-92e174309fca\audio.wav**  
**Traceback (most recent call last):**  
\*\* File “D:\LLM\NeuroSyncLipSync\NeuroSync\_Player\text\_to\_face.py”, line 48, in \*\*  
\*\* save\_generated\_data(audio\_bytes, generated\_facial\_data)\*\*  
\*\* File “D:\LLM\NeuroSyncLipSync\NeuroSync\_Player\utils\api\_utils.py”, line 62, in save\_generated\_data\*\*  
\*\* save\_generated\_data\_as\_csv(generated\_facial\_data, shapes\_path)\*\*  
\*\* File “D:\LLM\NeuroSyncLipSync\NeuroSync\_Player\utils\csv\save\_csv.py”, line 32, in save\_generated\_data\_as\_csv\*\*  
\*\* generated = generated.reshape(-1, total\_columns)\*\*  
\*\* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\*\*  
**ValueError: cannot reshape array of size 2992 into shape (61)**

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/8/428d260316638c57e041ad7172762bf21281034b.png)  
Any ideas?

---

<div class="post-metadata">

**Author:** ![Keneyr-Yin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Keneyr-Yin](https://forums.unrealengine.com/u/Keneyr-Yin)\
**Post date:** [January 24, 2025, 3:37pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/16 "2025-01-24T15:37:17Z")

</div>

Can it be English?

---

<div class="post-metadata">

**Author:** ![AnimaIgnis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnimaIgnis](https://forums.unrealengine.com/u/AnimaIgnis)\
**Post date:** [January 29, 2025, 12:31pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/17 "2025-01-29T12:31:06Z")

</div>

inside save\_csv.py you want to set include\_emotion\_dimensions=True

I will fix this though, its a bug as it should account for either on playback.

The return is 68 dimensions, but to save a csv for importing to unreal rather than playback via livelink you can disable saving the emotion dimensions.

edit : Fixed 🙂

---

<div class="post-metadata">

**Author:** ![Zamera](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zamera](https://forums.unrealengine.com/u/Zamera)\
**Post date:** [February 10, 2025, 3:00pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/19 "2025-02-10T15:00:33Z")

</div>

HI @Animalgnis, I tried the updated github code While I running the API code locally am facing the below error. Kindly let me know how to fix it. Running in Python 3.12.0

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/9/25937b612de224a86062ee60a798f78623583a14.png)

---

<div class="post-metadata">

**Author:** ![AnimaIgnis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnimaIgnis](https://forums.unrealengine.com/u/AnimaIgnis)\
**Post date:** [February 11, 2025, 2:45pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/20 "2025-02-11T14:45:06Z")

</div>

my bad! i have fixed it, just update your api code and it should work 🙂

---

<div class="post-metadata">

**Author:** ![Abood-AK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abood-AK](https://forums.unrealengine.com/u/Abood-AK)\
**Post date:** [February 26, 2025, 8:58pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/21 "2025-02-26T20:58:54Z")

</div>

Hello, what is the expected audio format input to the NeuroSync Player? I am trying PCM16 24kHz but I dont think it is working.

---

<div class="post-metadata">

**Author:** ![Ben\_Blau](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ben_blau/32/726696_2.png) [@Ben\_Blau](https://forums.unrealengine.com/u/Ben_Blau)\
**Post date:** [March 7, 2025, 3:23pm UTC](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352/23 "2025-03-07T15:23:08Z")

</div>

IIRC, you can make a playable WAV out of the raw PCM data array.

[Next page](https://forums.unrealengine.com/t/introducing-neurosync-real-time-60fps-audio-to-face-animation-with-transformer-based-seq2seq-neural-networks/1987352.md?page=2)
