Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_loadAllVoices = async () => {
const availableVoices = await Speech.getAvailableVoicesAsync();
this.setState({
voiceList: availableVoices,
voice: availableVoices[0].identifier,
});
}