Text to Speech within Ionic 3.
Run npm install
to download project dependencies
Run ionic cordova add <platform>
to add deployment platform
Run ionic cordova run <platform>
to run on deployment platform
Text to Speech within Ionic 3.
Hi All,
I am in middle of the application for the text to speech, I used Ionic cordova native text to speech plugin, It works fine when I pass option local:'en-US', In same scenario when I pass local:'ru_RU' for russian, not working.
Here i s the code snippet. src/pages/home/home.html
import {Component} from '@angular/core';
import {TextToSpeech} from '@ionic-native/text-to-speech';
@component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
text: string;
rate: number;
locale: string;
constructor(private tts: TextToSpeech) {
this.text = 'Initial text';
this.rate = 1;
this.locale = 'en-US';
}
playText() {
this.tts.speak({
text: this.text,
rate: this.rate / 10,
locale: this.locale
})
.then(() => console.log('Success'))
.catch((reason: any) => console.log(reason));
}
}
Please look into it. I want multiple language text to speech.
Thanks.
Hello
I cloned your project and test am android I get the net error :: ERRO_FILLE_NOT_FOUND and then I rewrote the code test on android I get error ERR_NOT_INITIALIZED,
Please help me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.