Skip to content

Commit

Permalink
fix: Change model to tohoku-f01 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
femshima authored Dec 18, 2023
1 parent 9300d64 commit 147ba2c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ WORKDIR /app
RUN wget https://github.com/jpreprocess/jpreprocess/releases/download/v0.6.1/naist-jdic-jpreprocess.tar.gz \
&& tar xzf naist-jdic-jpreprocess.tar.gz \
&& 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 \
&& rm hts_voice_nitech_jp_atr503_m001-1.05.tar.gz
RUN git clone --depth 1 https://github.com/icn-lab/htsvoice-tohoku-f01.git

FROM gcr.io/distroless/nodejs20-debian12:nonroot@sha256:015be521134f97b5f2b4c1543615eb4be907fadc8c6a52e60fd0c18f7cda0337 AS runner
WORKDIR /app
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ docker run --rm -d --env-file .env ghcr.io/discordjs-japan/om:latest

For copyright of dependent packages, please see package.json.

### [HTS Voice "NIT ATR503 M001" version 1.05](http://downloads.sourceforge.net/open-jtalk/hts_voice_nitech_jp_atr503_m001-1.05.tar.gz)
### [HTS voice tohoku-f01](https://github.com/icn-lab/htsvoice-tohoku-f01)

> [!NOTE]
> HTS Voice is only included in Docker container
Creative Commons Attribution 3.0
Creative Commons Attributions 4.0

- Copyright (c) 2003-2012 Nagoya Institute of Technology Department of Computer Science
- Copyright (c) 2003-2008 Tokyo Institute of Technology Interdisciplinary Graduate School of Science and Engineering
- Copyright (c) 2015 Intelligent Communication Network (Ito-Nose) Laboratory, Tohoku University.

### [naist-jdic](https://github.com/jpreprocess/jpreprocess/releases/download/v0.6.1/naist-jdic-jpreprocess.tar.gz)

Expand Down
2 changes: 1 addition & 1 deletion src/synthesis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import WorkerSynthesizer from "./worker-synthesizer";
export const synthesizer: Synthesizer = new WorkerSynthesizer(
process.env.DICTIONARY ?? "/app/model/naist-jdic",
process.env.MODEL ??
"/app/model/hts_voice_nitech_jp_atr503_m001-1.05/nitech_jp_atr503_m001.htsvoice",
"/app/model/htsvoice-tohoku-f01/tohoku-f01-neutral.htsvoice",
);
5 changes: 4 additions & 1 deletion src/synthesis/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ import { Message } from "discord.js";
import { SynthesisOption } from "node-altjtalk-binding";

export function createSynthesisOption(_: Message): SynthesisOption {
return {};
return {
additionalHalfTone: -5,
speechSpeedRate: 1.2,
};
}

0 comments on commit 147ba2c

Please sign in to comment.