mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-18 22:30:40 -07:00
fix: make transcript refinement language-aware
This commit is contained in:
@@ -8,4 +8,5 @@
|
||||
export type TranscriptionResponse = {
|
||||
text: string;
|
||||
duration: number;
|
||||
language?: string | null;
|
||||
};
|
||||
|
||||
@@ -13,5 +13,9 @@ export const $TranscriptionResponse = {
|
||||
type: 'number',
|
||||
isRequired: true,
|
||||
},
|
||||
language: {
|
||||
type: 'any-of',
|
||||
contains: [{ type: 'string' }, { type: 'null' }],
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
||||
@@ -258,6 +258,7 @@ export interface TranscriptionRequest {
|
||||
export interface TranscriptionResponse {
|
||||
text: string;
|
||||
duration: number;
|
||||
language?: string | null;
|
||||
}
|
||||
|
||||
export interface HealthResponse {
|
||||
|
||||
Reference in New Issue
Block a user