Skip to content

Commit 147ba2c

Browse files
authored
fix: Change model to tohoku-f01 (#65)
1 parent 9300d64 commit 147ba2c

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ WORKDIR /app
2121
RUN wget https://github.com/jpreprocess/jpreprocess/releases/download/v0.6.1/naist-jdic-jpreprocess.tar.gz \
2222
&& tar xzf naist-jdic-jpreprocess.tar.gz \
2323
&& rm naist-jdic-jpreprocess.tar.gz
24-
RUN wget http://downloads.sourceforge.net/open-jtalk/hts_voice_nitech_jp_atr503_m001-1.05.tar.gz \
25-
&& tar xzf hts_voice_nitech_jp_atr503_m001-1.05.tar.gz \
26-
&& rm hts_voice_nitech_jp_atr503_m001-1.05.tar.gz
24+
RUN git clone --depth 1 https://github.com/icn-lab/htsvoice-tohoku-f01.git
2725

2826
FROM gcr.io/distroless/nodejs20-debian12:nonroot@sha256:015be521134f97b5f2b4c1543615eb4be907fadc8c6a52e60fd0c18f7cda0337 AS runner
2927
WORKDIR /app

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ docker run --rm -d --env-file .env ghcr.io/discordjs-japan/om:latest
1818

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

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

2323
> [!NOTE]
2424
> HTS Voice is only included in Docker container
2525
26-
Creative Commons Attribution 3.0
26+
Creative Commons Attributions 4.0
2727

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

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

src/synthesis/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import WorkerSynthesizer from "./worker-synthesizer";
44
export const synthesizer: Synthesizer = new WorkerSynthesizer(
55
process.env.DICTIONARY ?? "/app/model/naist-jdic",
66
process.env.MODEL ??
7-
"/app/model/hts_voice_nitech_jp_atr503_m001-1.05/nitech_jp_atr503_m001.htsvoice",
7+
"/app/model/htsvoice-tohoku-f01/tohoku-f01-neutral.htsvoice",
88
);

src/synthesis/options.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ import { Message } from "discord.js";
22
import { SynthesisOption } from "node-altjtalk-binding";
33

44
export function createSynthesisOption(_: Message): SynthesisOption {
5-
return {};
5+
return {
6+
additionalHalfTone: -5,
7+
speechSpeedRate: 1.2,
8+
};
69
}

0 commit comments

Comments
 (0)