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
13 changes: 13 additions & 0 deletions packages/firebase_ai/firebase_ai/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import 'pages/schema_page.dart';
import 'pages/server_template_page.dart';
import 'pages/grounding_page.dart';
import 'pages/token_count_page.dart';
import 'pages/tts_page.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
Expand Down Expand Up @@ -180,6 +181,11 @@ class _HomeScreenState extends State<HomeScreen> {
title: 'Grounding',
useVertexBackend: useVertexBackend,
);
case 11:
return TTSPage(
title: 'TTS Test',
useVertexBackend: useVertexBackend,
);

default:
// Fallback to the first page in case of an unexpected index
Expand Down Expand Up @@ -314,6 +320,13 @@ class _HomeScreenState extends State<HomeScreen> {
label: 'Grounding',
tooltip: 'Search & Maps Grounding',
),
BottomNavigationBarItem(
icon: Icon(
Icons.record_voice_over,
),
label: 'TTS',
tooltip: 'Text to Speech',
),
],
currentIndex: _selectedIndex,
onTap: _onItemTapped,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ class _ChatPageState extends State<ChatPage> {
void _initializeChat() {
final generationConfig = GenerationConfig(
thinkingConfig: _enableThinking
? ThinkingConfig.withThinkingBudget(
null,
includeThoughts: true,
) // Using thinkingBudget since we are testing with gemini 2.5
? ThinkingConfig.withThinkingLevel(ThinkingLevel.medium)
: null,
);
if (widget.useVertexBackend) {
Expand Down
Loading
Loading