Skip to content

Commit

Permalink
use isolates for tts
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Aug 1, 2024
1 parent abe08ed commit 8af1008
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/ui/shared/chat_widgets/chat_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ class _ChatMessageWidgetState extends State<ChatMessageWidget> with SingleTicker

List<Widget> assistantOptions() {
return [
IconButton(
tooltip: 'Regenerate Response',
onPressed: onRegenerate,
icon: const Icon(Icons.refresh),
),
IconButton(
tooltip: 'Speak Message',
onPressed: () {
Babylon.tts(node.content);
},
icon: const Icon(Icons.volume_up),
),
IconButton(
tooltip: 'Regenerate Response',
onPressed: onRegenerate,
icon: const Icon(Icons.refresh),
),
)
];
}

Expand Down
2 changes: 1 addition & 1 deletion packages/babylon_tts

0 comments on commit 8af1008

Please sign in to comment.