|
| 1 | +# AvatarChatbot Application |
| 2 | + |
| 3 | +The AvatarChatbot service can be effortlessly deployed on either Intel Gaudi2 or Intel XEON Scalable Processors. |
| 4 | + |
| 5 | +## AI Avatar Workflow |
| 6 | + |
| 7 | +The AI Avatar example is implemented using both megaservices and the component-level microservices defined in [GenAIComps](https://github.com/opea-project/GenAIComps). The flow chart below shows the information flow between different megaservices and microservices for this example. |
| 8 | + |
| 9 | +```mermaid |
| 10 | +--- |
| 11 | +config: |
| 12 | + flowchart: |
| 13 | + nodeSpacing: 100 |
| 14 | + rankSpacing: 100 |
| 15 | + curve: linear |
| 16 | + themeVariables: |
| 17 | + fontSize: 42px |
| 18 | +--- |
| 19 | +flowchart LR |
| 20 | + classDef blue fill:#ADD8E6,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.5 |
| 21 | + classDef thistle fill:#D8BFD8,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.5 |
| 22 | + classDef orange fill:#FBAA60,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.5 |
| 23 | + classDef orchid fill:#C26DBC,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.5 |
| 24 | + classDef invisible fill:transparent,stroke:transparent; |
| 25 | + style AvatarChatbot-Megaservice stroke:#000000 |
| 26 | +
|
| 27 | + subgraph AvatarChatbot-Megaservice["AvatarChatbot Megaservice"] |
| 28 | + direction LR |
| 29 | + ASR([ASR Microservice]):::blue |
| 30 | + LLM([LLM Microservice]):::blue |
| 31 | + TTS([TTS Microservice]):::blue |
| 32 | + animation([Animation Microservice]):::blue |
| 33 | + end |
| 34 | + subgraph UserInterface["User Interface"] |
| 35 | + direction LR |
| 36 | + invis1[ ]:::invisible |
| 37 | + USER1([User Audio Query]):::orchid |
| 38 | + USER2([User Image/Video Query]):::orchid |
| 39 | + UI([UI server<br>]):::orchid |
| 40 | + end |
| 41 | + GW([AvatarChatbot GateWay<br>]):::orange |
| 42 | + subgraph . |
| 43 | + direction LR |
| 44 | + X([OPEA Microservice]):::blue |
| 45 | + Y{{Open Source Service}}:::thistle |
| 46 | + Z([OPEA Gateway]):::orange |
| 47 | + Z1([UI]):::orchid |
| 48 | + end |
| 49 | +
|
| 50 | + WHISPER{{Whisper service}}:::thistle |
| 51 | + TGI{{LLM service}}:::thistle |
| 52 | + T5{{Speecht5 service}}:::thistle |
| 53 | + WAV2LIP{{Wav2Lip service}}:::thistle |
| 54 | +
|
| 55 | + %% Connections %% |
| 56 | + direction LR |
| 57 | + USER1 -->|1| UI |
| 58 | + UI -->|2| GW |
| 59 | + GW <==>|3| AvatarChatbot-Megaservice |
| 60 | + ASR ==>|4| LLM ==>|5| TTS ==>|6| animation |
| 61 | +
|
| 62 | + direction TB |
| 63 | + ASR <-.->|3'| WHISPER |
| 64 | + LLM <-.->|4'| TGI |
| 65 | + TTS <-.->|5'| T5 |
| 66 | + animation <-.->|6'| WAV2LIP |
| 67 | +
|
| 68 | + USER2 -->|1| UI |
| 69 | + UI <-.->|6'| WAV2LIP |
| 70 | +``` |
| 71 | + |
| 72 | +## Deploy AvatarChatbot Service |
| 73 | + |
| 74 | +The AvatarChatbot service can be deployed on either Intel Gaudi2 AI Accelerator or Intel Xeon Scalable Processor. |
| 75 | + |
| 76 | +### Deploy AvatarChatbot on Gaudi |
| 77 | + |
| 78 | +Refer to the [Gaudi Guide](./docker_compose/intel/hpu/gaudi/README.md) for instructions on deploying AvatarChatbot on Gaudi. |
| 79 | + |
| 80 | +### Deploy AvatarChatbot on Xeon |
| 81 | + |
| 82 | +Refer to the [Xeon Guide](./docker_compose/intel/cpu/xeon/README.md) for instructions on deploying AvatarChatbot on Xeon. |
| 83 | + |
| 84 | +## Supported Models |
| 85 | + |
| 86 | +### ASR |
| 87 | + |
| 88 | +The default model is [openai/whisper-small](https://huggingface.co/openai/whisper-small). It also supports all models in the Whisper family, such as `openai/whisper-large-v3`, `openai/whisper-medium`, `openai/whisper-base`, `openai/whisper-tiny`, etc. |
| 89 | + |
| 90 | +To replace the model, please edit the `compose.yaml` and add the `command` line to pass the name of the model you want to use: |
| 91 | + |
| 92 | +```yaml |
| 93 | +services: |
| 94 | + whisper-service: |
| 95 | + ... |
| 96 | + command: --model_name_or_path openai/whisper-tiny |
| 97 | +``` |
| 98 | +
|
| 99 | +### TTS |
| 100 | +
|
| 101 | +The default model is [microsoft/SpeechT5](https://huggingface.co/microsoft/speecht5_tts). We currently do not support replacing the model. More models under the commercial license will be added in the future. |
| 102 | +
|
| 103 | +### Animation |
| 104 | +
|
| 105 | +The default model is [Rudrabha/Wav2Lip](https://github.com/Rudrabha/Wav2Lip) and [TencentARC/GFPGAN](https://github.com/TencentARC/GFPGAN). We currently do not support replacing the model. More models under the commercial license such as [OpenTalker/SadTalker](https://github.com/OpenTalker/SadTalker) will be added in the future. |
0 commit comments