Skip to content

Commit ed858a5

Browse files
feat: version欄を追加
1 parent 89eee92 commit ed858a5

File tree

9 files changed

+43
-41
lines changed

9 files changed

+43
-41
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ COEIROINK v2 を VOICEVOX のマルチエンジンで読み込めるようにす
88
99
## 使い方
1010

11-
1. [Releases](https://github.com/sevenc-nanashi/coeiroink-v2-bridge/releases) から最新の `coeiroink-v2-v0.0.0.vvpp` をダウンロードする
11+
1. [Releases](https://github.com/sevenc-nanashi/coeiroink-v2-bridge/releases)
12+
から最新の `coeiroink-v2-v0.0.0.vvpp` をダウンロードする
1213
2. vvpp を VOICEVOX に読み込ませる
1314
3. COEIROINK v2 を起動する
1415

build_resources/engine_manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"uuid": "96755ba9-6c9d-4166-aaf3-86633dfa0ca5",
44
"command": "coeiroink-v2-bridge",
55
"port": 50132,
6-
"supported_features": {}
6+
"supported_features": {},
7+
"version": "0.3.0"
78
}

deno.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@
44
"start": "deno run --allow-net --allow-run --allow-env --allow-read --allow-write main.ts",
55
"compile": "deno compile --allow-net --allow-run --allow-env --allow-read --allow-write -o coeiroink-v2-bridge main.ts"
66
},
7+
"imports": {
8+
"hono/": "https://deno.land/x/hono@v3.2.3/",
9+
"std/": "https://deno.land/std@0.190.0/",
10+
"ky": "https://esm.sh/ky@0.33.2",
11+
"base64": "https://deno.land/x/base64@v0.2.1/mod.ts",
12+
"async-lock": "npm:async-lock@1.4.0",
13+
"wanakana": "npm:wanakana@5.2.0",
14+
"os_paths": "https://deno.land/x/os_paths@v7.4.0/src/mod.deno.ts"
15+
},
716
"lock": false
817
}

deps.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { dirname, Hono, honoLogger, ky, parse, serve } from "./deps.ts";
1+
import { dirname } from "std/path/mod.ts";
2+
import { Hono } from "hono/mod.ts";
3+
import { logger as honoLogger } from "hono/middleware.ts";
4+
import ky from "ky";
5+
import { parse } from "std/flags/mod.ts";
6+
import { serve } from "std/http/server.ts";
27
import dictProvider from "./providers/dict.ts";
38
import infoProvider from "./providers/info.ts";
49
import noopProvider from "./providers/noop.ts";

providers/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Hono, ky } from "../deps.ts";
1+
import { Hono } from "hono/mod.ts";
2+
import ky from "ky";
23

34
export type Provider = ({
45
baseClient,

providers/info.ts

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { dirname, toBase64 } from "../deps.ts";
1+
import { dirname } from "std/path/mod.ts";
2+
import { fromUint8Array as toBase64 } from "base64";
23
import { Provider } from "./index.ts";
34

45
let speakers: {
@@ -18,12 +19,11 @@ const infoProvider: Provider = ({ baseClient, app }) => {
1819
app.get("/version", async (c) => {
1920
await baseClient.get("");
2021

21-
return c.json("0.2.1");
22+
return c.json("0.3.0");
2223
});
2324

24-
app.get(
25-
"/supported_devices",
26-
(c) => c.json({ cpu: true, cuda: false, dml: false }),
25+
app.get("/supported_devices", (c) =>
26+
c.json({ cpu: true, cuda: false, dml: false }),
2727
);
2828

2929
app.get("/engine_manifest", async (c) => {
@@ -33,13 +33,12 @@ const infoProvider: Provider = ({ baseClient, app }) => {
3333
brand_name: "COEIROINK v2",
3434
uuid: "96755ba9-6c9d-4166-aaf3-86633dfa0ca5",
3535
url: "https://github.com/sevenc-nanashi/coeiroink-v2-bridge",
36+
version: "0.3.0",
3637
icon: await Deno.readFile(
3738
Deno.execPath().endsWith("deno.exe")
3839
? new URL("./icon.png", import.meta.url)
3940
: dirname(Deno.execPath()) + "/icon.png",
40-
).then(
41-
(buf) => toBase64(buf),
42-
),
41+
).then((buf) => toBase64(buf)),
4342
default_sampling_rate: 24000,
4443
terms_of_service: "https://coeiroink.com/terms を参照して下さい。",
4544
update_infos: [
@@ -51,33 +50,29 @@ const infoProvider: Provider = ({ baseClient, app }) => {
5150
],
5251
contributors: [],
5352
},
53+
{
54+
version: "0.3.0",
55+
descriptions: ["fix: versionフィールドを修正"],
56+
contributors: ["sevenc-nanashi"],
57+
},
5458
{
5559
version: "0.2.1",
56-
descriptions: [
57-
"Fix: 空のAccentPhraseで無音を返すように",
58-
],
60+
descriptions: ["Fix: 空のAccentPhraseで無音を返すように"],
5961
contributors: ["sevenc-nanashi"],
6062
},
6163
{
6264
version: "0.2.0",
63-
descriptions: [
64-
"Change: Coeiroink側のstyleIdを使うように変更",
65-
],
65+
descriptions: ["Change: Coeiroink側のstyleIdを使うように変更"],
6666
contributors: ["sevenc-nanashi"],
6767
},
6868
{
6969
version: "0.1.3",
70-
descriptions: [
71-
"Fix: 読点周りの挙動を修正",
72-
],
70+
descriptions: ["Fix: 読点周りの挙動を修正"],
7371
contributors: ["sevenc-nanashi"],
7472
},
7573
{
7674
version: "0.1.2",
77-
descriptions: [
78-
"Add: mutexを追加",
79-
"Add: 自動起動を追加",
80-
],
75+
descriptions: ["Add: mutexを追加", "Add: 自動起動を追加"],
8176
contributors: ["sevenc-nanashi"],
8277
},
8378
{

providers/synthesis.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { Provider } from "./index.ts";
2-
import { AsyncLock, wanakana } from "../deps.ts";
2+
// @ts-types="npm:@types/async-lock@1.4.2"
3+
import AsyncLock from "async-lock";
4+
// @ts-types="npm:@types/wanakana@4.0.6"
5+
import wanakana from "wanakana";
36

47
type Prosody = {
58
plain: string[];

store.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { homeDir } from "./deps.ts";
1+
import osPaths from "os_paths";
2+
const homeDir = osPaths.home();
23

34
type Store = {
45
enginePath: string | undefined;

0 commit comments

Comments
 (0)