Quick Start

Basic Implementation
Get voice control working in your Flutter app in minutes
import 'package:voxify/voxify.dart';

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  late VoxifyController _voxifyController;

  @override
  void initState() {
    super.initState();
    _voxifyController = VoxifyController();
    _setupVoiceCommands();
  }

  void _setupVoiceCommands() {
    _voxifyController.addCommand(
      phrase: "navigate home",
      action: () => Navigator.pushNamed(context, '/home'),
    );
    
    _voxifyController.addCommand(
      phrase: "open settings",
      action: () => Navigator.pushNamed(context, '/settings'),
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: VoxifyListener(
        controller: _voxifyController,
        child: YourMainWidget(),
      ),
    );
  }
}

Last updated: 6/6/2025Contact the team