Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/server/src/voice/VoiceTranscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const make = Effect.gen(function* () {
language,
).pipe(
Effect.timeoutOrElse({
duration: "90 seconds",
duration: "5 minutes",
orElse: () => Effect.fail(new VoiceTranscriptionError({ reason: "unavailable" })),
}),
Effect.result,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/settings/VoiceInputSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function VoiceInputSettings() {
serverScoped
settingKeys={["voiceInput"]}
title="Transcription language"
description="Leave empty for automatic detection, or enter a language code such as en or bg. Recordings stop after five minutes."
description="Leave empty for automatic detection, or enter a language code such as en or bg. Recordings stop after 30 minutes."
control={
<DraftInput
size="sm"
Expand Down
2 changes: 1 addition & 1 deletion packages/client-runtime/src/voice-input/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { replaceTextRange } from "@t3tools/shared/composerTrigger";

import type { PreparedVoiceTranscription, VoiceTranscriber } from "./transcription.ts";

export const VOICE_RECORDING_LIMIT_SECONDS = 5 * 60;
export const VOICE_RECORDING_LIMIT_SECONDS = 30 * 60;

export type VoiceInputPhase = "idle" | "preparing" | "recording" | "transcribing" | "error";

Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/src/voiceInput.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Schema from "effect/Schema";

export const MAX_VOICE_RECORDING_BYTES = 4 * 1024 * 1024;
export const MAX_VOICE_RECORDING_BYTES = 32 * 1024 * 1024;
export const VoiceRecordingId = Schema.String.check(Schema.isPattern(/^[A-Za-z0-9-]{8,64}$/));
export const VoiceRecordingContext = Schema.Struct({
id: VoiceRecordingId,
Expand Down
Loading