Sample application sending audio to Audio2Face Microservice

A sample application is provided to demonstrate how to send an audio clip to Audio2Face Microservice when Audio2Face Microservice is connected to other Microservice downstream.

E.g.:

3 Microservices connected together:

  • Audio2Face Microservice

  • Animation Graph Microservice

  • Renderer Microservice

So that we have the following connections:

  • Audio2Face Microservice sends audio and animation data to Animation Graph Microservice

  • Animation Graph Microservice sends audio and animation data to Renderer Microservice

Assumptions

The Audio2Face Microservice downstream client is connected to other Microservices.

The Audio2Face Microservice is up and running.

Sending an audio clip

Clone the repository: https://github.com/NVIDIA/ACE

Go to microservices/audio_2_face_microservice/scripts/audio2face_in_animation_pipeline_validation_app subfolder.

And follow the setup instructions in the README.md.

This sample python application can be used as follows:

usage: validate.py [-h] -u URL -i ID file

Sample application to validate A2F setup.

positional arguments:
  file               PCM-16 bits mono Audio file to send to the pipeline

options:
  -h, --help         show this help message and exit
  -u URL, --url URL  URL of the Audio2Face Microservice
  -i ID, --id ID     Stream ID for the request
  • URL is the ip and port of the Audio2Face Microservice

  • ID is the stream id that correspond to a specific avatar in the animation pipeline

  • file is the audio wav file that must be in mono PCM-16 bits format