Skip to content

Commit

Permalink
put dict and model in separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
phenylshima committed Nov 23, 2023
1 parent d3944f5 commit d3233db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ RUN wget https://github.com/jpreprocess/jpreprocess/releases/download/v0.6.1/nai
&& rm naist-jdic-jpreprocess.tar.gz
RUN wget http://downloads.sourceforge.net/open-jtalk/hts_voice_nitech_jp_atr503_m001-1.05.tar.gz \
&& tar xzf hts_voice_nitech_jp_atr503_m001-1.05.tar.gz \
&& mv hts_voice_nitech_jp_atr503_m001-1.05/* ./ \
&& rm hts_voice_nitech_jp_atr503_m001-1.05.tar.gz \
&& rmdir hts_voice_nitech_jp_atr503_m001-1.05
&& rm hts_voice_nitech_jp_atr503_m001-1.05.tar.gz

FROM gcr.io/distroless/nodejs18-debian12:nonroot AS runner
WORKDIR /app
Expand Down
3 changes: 2 additions & 1 deletion src/synthesis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import WorkerSynthesizer from "./worker-synthesizer";

export const synthesizer: Synthesizer = new WorkerSynthesizer(
process.env.DICTIONARY ?? "/app/model/naist-jdic",
process.env.MODEL ?? "/app/model/nitech_jp_atr503_m001.htsvoice",
process.env.MODEL ??
"/app/model/hts_voice_nitech_jp_atr503_m001-1.05/nitech_jp_atr503_m001.htsvoice",
);

0 comments on commit d3233db

Please sign in to comment.