Skip to content

Commit

Permalink
Fix: build failed because of types
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiVaibhav committed Apr 12, 2024
1 parent c7e6a53 commit d0689ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/context/Deepgram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ import {
useState,
} from "react";
import { useToast } from "./Toast";
import { useLocalStorage } from "../lib/hooks/useLocalStrorage";
import { useLocalStorage } from "../lib/hooks/useLocalStorage";

type DeepgramContext = {
ttsOptions: SpeakSchema | undefined;
setTtsOptions: Dispatch<SetStateAction<SpeakSchema>>;
sttOptions: LiveSchema | undefined;
setSttOptions: Dispatch<SetStateAction<LiveSchema>>;
ttsOptions: SpeakSchema;
setTtsOptions: (value: SpeakSchema) => void;
sttOptions: LiveSchema;
setSttOptions: (value: LiveSchema) => void;
connection: LiveClient | undefined;
connectionReady: boolean;
};
Expand Down Expand Up @@ -136,10 +136,10 @@ const getApiKey = async (): Promise<string> => {

const DeepgramContextProvider = ({ children }: DeepgramContextInterface) => {
const { toast } = useToast();
const [ttsOptions, setTtsOptions] = useLocalStorage<LiveSchema>('ttsModel', {
const [ttsOptions, setTtsOptions] = useLocalStorage<SpeakSchema>('ttsModel', {
model: DEFAULT_TTS_MODEL
});
const [sttOptions, setSttOptions] = useLocalStorage('sttModel', {
const [sttOptions, setSttOptions] = useLocalStorage<LiveSchema>('sttModel', {
model: DEFAULT_STT_MODEL,
interim_results: true,
smart_format: true,
Expand Down
File renamed without changes.

0 comments on commit d0689ca

Please sign in to comment.