feat: migrate to vite and hono

This commit is contained in:
2025-06-04 11:46:50 +09:00
committed by Satsuki Akiba (aider)
parent 80d48a1f8c
commit ac8dd91b7f
8 changed files with 192 additions and 111 deletions

View File

@ -2,9 +2,12 @@ import fs from "fs";
import path from "path";
// VOICEVOX APIの設定
const VOICEVOX_HOST = process.env.VOICEVOX_HOST ?? "http://localhost:50021";
const VOICEVOX_SPEAKER_ID = parseInt(process.env.VOICEVOX_SPEAKER_ID ?? "3");
const VOICEVOX_STYLE_ID = parseInt(process.env.VOICEVOX_STYLE_ID ?? "2");
const VOICEVOX_HOST =
import.meta.env["VOICEVOX_HOST"] ?? "http://localhost:50021";
const VOICEVOX_SPEAKER_ID = parseInt(
import.meta.env["VOICEVOX_SPEAKER_ID"] ?? "3",
);
const VOICEVOX_STYLE_ID = parseInt(import.meta.env["VOICEVOX_STYLE_ID"] ?? "2");
interface VoiceStyle {
speakerId: number;