fix types and build error

This commit is contained in:
akdeb 2025-06-11 16:06:00 +01:00
parent eec6f1a0f1
commit 5056732402
4 changed files with 19 additions and 20 deletions

View file

@ -14,7 +14,7 @@ import { v4 as uuidv4 } from 'uuid';
import { toast } from "@/components/ui/use-toast";
import { useRouter } from "next/navigation";
import { z } from "zod";
import { emotionOptions, geminiVoices, openaiVoices, r2UrlAudio, VoiceType } from "@/lib/data";
import { emotionOptions, geminiVoices, openaiVoices, r2UrlAudio } from "@/lib/data";
import EmojiComponent from "./EmojiComponent";
import { PitchFactors } from "@/lib/utils";
import { Slider } from "@/components/ui/slider";

View file

@ -3,7 +3,6 @@ import { User } from "@supabase/supabase-js";
import Link from "next/link";
import { businessDemoLink, githubPublicLink } from "@/lib/data";
import { Separator } from "@/components/ui/separator";
import PreorderButton from "../PreorderButton";
import { NavbarDropdownMenu } from "./NavbarDropdownMenu";
import { FaGithub } from "react-icons/fa";
import PremiumBadge from "../PremiumBadge";

View file

@ -38,24 +38,6 @@ export const DEVICE_COST = 55;
export const ORIGINAL_COST = 111;
export const SUBSCRIPTION_COST = 10;
export type VoiceType =
| {
provider: "openai";
id: OaiVoice;
name: string;
description: string;
color: string;
emoji?: string;
}
| {
provider: "gemini";
id: GeminiVoice;
name: string;
description: string;
color: string;
emoji?: string;
};
export const openaiVoices: VoiceType[] = [
{
id: "alloy",

View file

@ -98,6 +98,24 @@ declare global {
is_sensitive: boolean;
}
type VoiceType =
| {
provider: "openai";
id: OaiVoice;
name: string;
description: string;
color: string;
emoji?: string;
}
| {
provider: "gemini";
id: GeminiVoice;
name: string;
description: string;
color: string;
emoji?: string;
};
type ModelProvider = "openai" | "gemini";
type GeminiVoice =