Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Explain what Whisper is in the transcription settings

Barnabas9a9fea3462ed
diff --git a/lib/screens/transcription_settings_screen.dart b/lib/screens/transcription_settings_screen.dart
index afc0b802..84e70948 100644
--- a/lib/screens/transcription_settings_screen.dart
+++ b/lib/screens/transcription_settings_screen.dart
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
+import 'package:url_launcher/url_launcher.dart';
import '../l10n/app_localizations.dart';
import '../services/player_settings.dart';
import '../services/transcription_service.dart';
@@ -118,16 +119,45 @@ class _TranscriptionSettingsScreenState
color: cs.surfaceContainerHigh,
borderRadius: BorderRadius.circular(12),
),
- child: Row(
+ child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- Icon(Icons.lock_outline_rounded, size: 18, color: cs.primary),
- const SizedBox(width: 10),
- Expanded(
- child: Text(
- l.transcriptionDisclaimer,
- style: tt.bodySmall
- ?.copyWith(color: cs.onSurfaceVariant, height: 1.4),
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Icon(Icons.lock_outline_rounded, size: 18, color: cs.primary),
+ const SizedBox(width: 10),
+ Expanded(
+ child: Text(
+ l.transcriptionDisclaimer,
+ style: tt.bodySmall
+ ?.copyWith(color: cs.onSurfaceVariant, height: 1.4),
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 10),
+ Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Icon(Icons.record_voice_over_rounded, size: 18, color: cs.primary),
+ const SizedBox(width: 10),
+ Expanded(
+ child: Text(
+ l.transcriptionWhisperInfo,
+ style: tt.bodySmall
+ ?.copyWith(color: cs.onSurfaceVariant, height: 1.4),
+ ),
+ ),
+ ],
+ ),
+ Align(
+ alignment: Alignment.centerRight,
+ child: TextButton(
+ onPressed: () => launchUrl(
+ Uri.parse('https://openai.com/index/whisper/'),
+ mode: LaunchMode.externalApplication),
+ child: Text(l.transcriptionWhisperLearnMore),
),
),
],