creates video voice memos from audio clips; with bluesky integration.
trill.ptr.pet
1export const setting = <T>(key: string) => {
2 return {
3 get: () => {
4 const value = localStorage.getItem(key);
5 return value !== null ? (JSON.parse(value) as T) : undefined;
6 },
7 set: (value: T | undefined) =>
8 value === undefined
9 ? localStorage.removeItem(key)
10 : localStorage.setItem(key, JSON.stringify(value)),
11 };
12};
13export type Setting<T> = ReturnType<typeof setting<T>>;
14
15export const showVisualizer = setting<boolean>("showVisualizer");
16export const showProfilePicture = setting<boolean>("showProfilePicture");
17export const useDominantColorAsBg = setting<boolean>("useDominantColorAsBg");
18export const backgroundColor = setting<string>("backgroundColor");
19export const frameRate = setting<number>("frameRate");
20
21export const autoTranscribe = setting<boolean>("autoTranscribe");
22export const whisperModel = setting<string>("whisperModel");
23export const defaultWhisperModel = "onnx-community/whisper-tiny";