Skip to content

Commit

Permalink
similifying + fixed bug with path
Browse files Browse the repository at this point in the history
  • Loading branch information
haouarihk committed Jan 8, 2025
1 parent 9a6dec5 commit c38f553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ FROM python:3.10-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
# Install system dependencies (removed build-essential as it's not needed)
RUN apt-get update && apt-get install -y espeak-ng \
&& rm -rf /var/lib/apt/lists/*

# Copy requirements and install Python dependencies
Expand Down
2 changes: 1 addition & 1 deletion app/services/tts_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class TTSService:
def __init__(self):
self.model = PiperVoice.load(model_path="./model.onnx")
self.model = PiperVoice.load(model_path="./voice_model.onnx")

def generate_audio(self, text: str, voice_name: str = None, language: str = None):
# Generate audio using Piper
Expand Down

0 comments on commit c38f553

Please sign in to comment.