Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ else
fi

# ルートの.envファイルを読み込んでサーバーを起動
# Node.jsのメモリ制限を1GBに設定
export NODE_OPTIONS="--max-old-space-size=1024"
# Node.jsのメモリ制限を1GBに設定、WASMモジュールを有効化(Prisma 7対応)
export NODE_OPTIONS="--max-old-space-size=1024 --experimental-wasm-modules"

if command -v pnpm >/dev/null 2>&1; then
pnpm tsx --env-file=../.env src/server.ts
Expand Down
2 changes: 1 addition & 1 deletion backend/src/lib/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient } from "../generated/prisma/edge";
import { PrismaClient } from "../generated/prisma";
import { withAccelerate } from "@prisma/extension-accelerate";

// PrismaClientのシングルトンインスタンスを作成
Expand Down
4 changes: 2 additions & 2 deletions backend/src/routes/modules/speech.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ speech.openapi(ttsRoute, async (c) => {

const { text, voiceId, modelId } = c.req.valid("json");

// Use default voiceId if not provided (Rachel - a natural sounding voice)
const selectedVoiceId = voiceId || "lhTvHflPVOqgSWyuWQry";
// Use default voiceId from environment or fallback
const selectedVoiceId = voiceId || process.env.ELEVENLABS_VOICE_ID || "lhTvHflPVOqgSWyuWQry";

const audioStream = await textToSpeech(
apiKey,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function RootLayout({
<link rel="apple-touch-icon" href="/renai_icon.png" />
<link
rel="preload"
href="/models/hachisannomaki.vrm"
href="/models/maki.vrm"
as="fetch"
crossOrigin="anonymous"
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/simulation/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function SimulationPage() {
const avatarModelUrl = useMemo(() => {
if (selectedAvatar === "male") return "/models/rento.vrm";
if (selectedAvatar === "neutral") return "/models/kouta.vrm";
return "/models/hachisannomaki.vrm"; // female
return "/models/maki.vrm"; // female
}, [selectedAvatar]);

// 背景の保存/復元s
Expand Down