How to use the expo-speech.getAvailableVoicesAsync function in expo-speech

To help you get started, we’ve selected a few expo-speech examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / apps / native-component-list / src / screens / TextToSpeechScreen.tsx View on Github external
_loadAllVoices = async () => {
    const availableVoices = await Speech.getAvailableVoicesAsync();
    this.setState({
      voiceList: availableVoices,
      voice: availableVoices[0].identifier,
    });
  }

expo-speech

Provides text-to-speech functionality.

MIT
Latest version published 2 months ago

Package Health Score

90 / 100
Full package analysis