Skip to content

Commit 5f16644

Browse files
committed
feat: add piper tts microservice (#328)
1 parent 641336b commit 5f16644

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1952
-273
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Based on the platform you are using, select the following to get started:
3131
5. [LLM Finetuning Benchmark](usecases/ai/finetuning-benchmark/README.md)
3232
6. [LLM RAG Toolkit](usecases/ai/rag-toolkit/README.md)
3333
7. [AI Video Analytics](usecases/ai/ai-video-analytics/README.md)
34+
7. [Digital Avatar](usecases/ai/digital-avatar/README.md)
3435

3536
## Disclaimer
3637
GStreamer* is an open source framework licensed under LGPL. See https://gstreamer.freedesktop.org/documentation/frequently-asked-questions/licensing.html. You are solely responsible for determining if your use of GStreamer requires any additional licenses. Intel is not responsible for obtaining any such licenses, nor liable for any licensing fees due, in connection with your use of GStreamer.

usecases/ai/digital-avatar/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ backend/wav2lip/wav2lip/temp
1111
assets/*
1212
weights/*
1313
backend/liveportrait/templates
14-
data/ollama
14+
data/

usecases/ai/digital-avatar/README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ Please ensure that you have these ports available before running the application
4646

4747
### Prerequisite
4848
1. **OS**: Ubuntu (Validated on 22.04)
49-
50-
***Note***: If you are using different Ubuntu version, please [update the RENDER_GROUP_ID](#1-how-to-check-render-group-id)
51-
5249
1. **Docker and Docker Compose**: Ensure Docker and Docker Compose are installed. Refer to [Docker installation guide](https://docs.docker.com/engine/install/).
5350
1. **Intel GPU Drivers**:
5451
1. Refer to [here](../../../README.md#gpu) to install Intel GPU Drivers
@@ -105,17 +102,3 @@ stt_service:
105102
## Limitations
106103
### 1. Automatic Speech Recognition Compatibility
107104
Automatic speech recognition functionality is not supported in Firefox. Please use Chrome for validated performance.
108-
109-
## FAQ
110-
### 1. Update Render Group ID
111-
1. Ensure the [Intel GPU driver](#prerequisite) is installed.
112-
2. Check the group ID from `/etc/group`:
113-
```bash
114-
grep render /etc/group
115-
```
116-
3. The output will be something like:
117-
```
118-
render:x:110:user
119-
```
120-
4. The group ID is the number in the third field (e.g., `110` in the example above).
121-
5. Ensure the `RENDER_GROUP_ID` in the [docker-compose.yml](./docker-compose.yml) file matches the render group ID.

usecases/ai/digital-avatar/backend/liveportrait/Dockerfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
FROM debian:12-slim
25

36
ARG DEBIAN_FRONTEND=noninteractive
47
ARG RENDER_GROUP_ID
58
RUN apt-get update \
6-
&& apt-get upgrade -y \
9+
&& apt-get dist-upgrade -y \
710
&& apt-get install --no-install-recommends -y \
811
sudo \
912
wget \
@@ -39,12 +42,15 @@ RUN apt-get update \
3942
# Intel GPU Driver
4043
RUN apt-get update && apt-get install -y gnupg
4144

42-
RUN wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
43-
gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \
44-
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy client" | \
45-
tee /etc/apt/sources.list.d/intel-gpu-jammy.list && \
46-
apt update && \
47-
apt-get install -y --no-install-recommends libze1 intel-level-zero-gpu intel-opencl-icd clinfo libze-dev intel-ocloc
45+
RUN mkdir neo && cd neo \
46+
&& wget https://github.com/intel/intel-graphics-compiler/releases/download/v2.5.6/intel-igc-core-2_2.5.6+18417_amd64.deb \
47+
&& wget https://github.com/intel/intel-graphics-compiler/releases/download/v2.5.6/intel-igc-opencl-2_2.5.6+18417_amd64.deb \
48+
&& wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/intel-level-zero-gpu-dbgsym_1.6.32224.5_amd64.ddeb \
49+
&& wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/intel-level-zero-gpu_1.6.32224.5_amd64.deb \
50+
&& wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/intel-opencl-icd-dbgsym_24.52.32224.5_amd64.ddeb \
51+
&& wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/intel-opencl-icd_24.52.32224.5_amd64.deb \
52+
&& wget https://github.com/intel/compute-runtime/releases/download/24.52.32224.5/libigdgmm12_22.5.5_amd64.deb \
53+
&& dpkg -i *.deb
4854

4955
USER intel
5056
WORKDIR /usr/src/app

usecases/ai/digital-avatar/backend/liveportrait/liveportrait/src/utils/dependencies/insightface/data/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

usecases/ai/digital-avatar/backend/liveportrait/liveportrait/src/utils/dependencies/insightface/data/image.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)