Giter Site home page Giter Site logo

ionic3_texttospeech's Introduction

Ionic3_TextToSpeech

Text to Speech within Ionic 3.

Setup

Run npm install to download project dependencies

Add Platform

Run ionic cordova add <platform> to add deployment platform

Run

Run ionic cordova run <platform> to run on deployment platform

ionic3_texttospeech's People

Contributors

paulhalliday avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ionic3_texttospeech's Issues

Ionic text to speech not works

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

Ionic Text To Speech Text Language Russian English Play Text src/pages/home/home.ts

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.

ERR_NOT_INITIALIZED

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.