添加朗读器本地保存功能

This commit is contained in:
2025-10-12 18:42:04 +08:00
parent 85085ba5ff
commit 4708828972
5 changed files with 190 additions and 65 deletions

View File

@@ -1,3 +1,4 @@
import z from "zod";
export interface Word {
word: string;
@@ -10,4 +11,10 @@ export interface Word {
roman_letter?: string;
}
export type SupportedAlphabets = 'japanese' | 'english' | 'esperanto' | 'uyghur';
export const TextSpeakerItemSchema = z.object({
text: z.string(),
ipa: z.string().optional(),
locale: z.string()
});
export const TextSpeakerArraySchema = z.array(TextSpeakerItemSchema);