mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
Merge branch 'master' into feat/streaming
This commit is contained in:
commit
3cb595a129
4 changed files with 26 additions and 17 deletions
21
.github/workflows/docker-publish.yml
vendored
21
.github/workflows/docker-publish.yml
vendored
|
@ -35,9 +35,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern=v{{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern=v{{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern=v{{major}}
|
||||||
|
type=raw,value=latest
|
||||||
|
|
||||||
# Extract metadata for CPU image
|
# Extract metadata for CPU image
|
||||||
- name: Extract metadata (tags, labels) for CPU Docker
|
- name: Extract metadata (tags, labels) for CPU Docker
|
||||||
|
@ -48,9 +49,10 @@ jobs:
|
||||||
flavor: |
|
flavor: |
|
||||||
suffix=-cpu
|
suffix=-cpu
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern=v{{version}}-cpu
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern=v{{major}}.{{minor}}-cpu
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern=v{{major}}-cpu
|
||||||
|
type=raw,value=latest-cpu
|
||||||
|
|
||||||
# Build and push GPU version
|
# Build and push GPU version
|
||||||
- name: Build and push GPU Docker image
|
- name: Build and push GPU Docker image
|
||||||
|
@ -83,9 +85,10 @@ jobs:
|
||||||
flavor: |
|
flavor: |
|
||||||
suffix=-ui
|
suffix=-ui
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern=v{{version}}-ui
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern=v{{major}}.{{minor}}-ui
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern=v{{major}}-ui
|
||||||
|
type=raw,value=latest-ui
|
||||||
|
|
||||||
# Build and push UI version
|
# Build and push UI version
|
||||||
- name: Build and push UI Docker image
|
- name: Build and push UI Docker image
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
Dockerized FastAPI wrapper for [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M) text-to-speech model
|
Dockerized FastAPI wrapper for [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M) text-to-speech model
|
||||||
- OpenAI-compatible Speech endpoint, with voice combination functionality
|
- OpenAI-compatible Speech endpoint, with voice combination functionality
|
||||||
- NVIDIA GPU accelerated inference (or CPU) option
|
- NVIDIA GPU accelerated inference (or CPU) option
|
||||||
- very fast generation time (~30x real time factor via 4060Ti)
|
- very fast generation time (~30x real time speed via 4060Ti)
|
||||||
- automatic chunking/stitching for long texts
|
- automatic chunking/stitching for long texts
|
||||||
- streaming support w/ variable chunking to control latency
|
- streaming support w/ variable chunking to control latency
|
||||||
- simple audio generation web ui utility
|
- simple audio generation web ui utility
|
||||||
|
|
|
@ -26,9 +26,11 @@ services:
|
||||||
start_period: 1s
|
start_period: 1s
|
||||||
|
|
||||||
kokoro-tts:
|
kokoro-tts:
|
||||||
build:
|
image: ghcr.io/remsky/kokoro-fastapi:latest-cpu
|
||||||
context: .
|
# Uncomment below to build from source instead of using the released image
|
||||||
dockerfile: Dockerfile.cpu
|
# build:
|
||||||
|
# context: .
|
||||||
|
# dockerfile: Dockerfile.cpu
|
||||||
volumes:
|
volumes:
|
||||||
- ./api/src:/app/api/src
|
- ./api/src:/app/api/src
|
||||||
- ./Kokoro-82M:/app/Kokoro-82M
|
- ./Kokoro-82M:/app/Kokoro-82M
|
||||||
|
@ -50,8 +52,10 @@ services:
|
||||||
|
|
||||||
# Gradio UI service [Comment out everything below if you don't need it]
|
# Gradio UI service [Comment out everything below if you don't need it]
|
||||||
gradio-ui:
|
gradio-ui:
|
||||||
build:
|
image: ghcr.io/remsky/kokoro-fastapi:latest-ui
|
||||||
context: ./ui
|
# Uncomment below to build from source instead of using the released image
|
||||||
|
# build:
|
||||||
|
# context: ./ui
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -56,8 +56,10 @@ services:
|
||||||
|
|
||||||
# Gradio UI service [Comment out everything below if you don't need it]
|
# Gradio UI service [Comment out everything below if you don't need it]
|
||||||
gradio-ui:
|
gradio-ui:
|
||||||
build:
|
image: ghcr.io/remsky/kokoro-fastapi:latest-ui
|
||||||
context: ./ui
|
# Uncomment below to build from source instead of using the released image
|
||||||
|
# build:
|
||||||
|
# context: ./ui
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Add table
Reference in a new issue