moxieTalking/src/app/layout.tsx
Z User e4408a63e6 feat: add Echo voice assistant web UI
- Conversation sidebar with create/delete/history
- Chat area with streaming LLM responses (z-ai-web-dev-sdk)
- Voice input via Web Speech API with recording indicator
- Browser TTS auto-speak for assistant responses
- Settings panel (voice, TTS, sidebar toggle)
- Prisma schema: Conversation + Message models
- API routes: /api/chat/stream, /api/conversations, /api/messages
- Zustand store for state management
- Web Speech API type declarations
2026-03-31 00:42:10 +00:00

41 lines
996 B
TypeScript

import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Toaster } from "@/components/ui/toaster";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Echo — Voice Assistant",
description:
"A modular, private-first voice assistant with local speech recognition, cloud reasoning, and controllable text-to-speech.",
icons: {
icon: "https://z-cdn.chatglm.cn/z-ai/static/logo.svg",
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased bg-background text-foreground`}
>
{children}
<Toaster />
</body>
</html>
);
}