Skip to content

Commit 4079fec

Browse files
committed
try to connect add-phrase to htt provider
1 parent f3ab559 commit 4079fec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/add-phrase/add-phrase.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Platform } from 'ionic-angular';
1010
import { Media, MediaObject } from '@ionic-native/media';
1111
import { File } from '@ionic-native/file';
1212
import { FilePath } from '@ionic-native/file-path';
13+
import { HttpProvider } from '../../providers/http/http';
1314

1415
declare var cordova: any;
1516

@@ -50,7 +51,8 @@ export class AddPhrasePage {
5051
private media: Media,
5152
public platform: Platform,
5253
private file: File,
53-
private filePath: FilePath) {
54+
private filePath: FilePath,
55+
private httpProvider:HttpProvider) {
5456

5557

5658

@@ -323,6 +325,7 @@ export class AddPhrasePage {
323325
this.showAlert("לא הוכנס משפט", null);
324326
} else {
325327
console.log(this._myForm.controls['text'].value);//the input text value
328+
//this.httpProvider.textToSpeech(this._myForm.controls['text'].value, Enums.API_KEYS.TTS_ofek_API_KEY, "");
326329
}
327330
}
328331

0 commit comments

Comments
 (0)