You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Backport text-to-speech support.
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
|
||||
#include "java_godot_io_wrapper.h"
|
||||
#include "java_godot_wrapper.h"
|
||||
#include "tts_android.h"
|
||||
|
||||
const char *OS_Android::ANDROID_EXEC_PATH = "apk";
|
||||
|
||||
@@ -81,6 +82,34 @@ public:
|
||||
virtual ~AndroidLogger() {}
|
||||
};
|
||||
|
||||
bool OS_Android::tts_is_speaking() const {
|
||||
return TTS_Android::is_speaking();
|
||||
}
|
||||
|
||||
bool OS_Android::tts_is_paused() const {
|
||||
return TTS_Android::is_paused();
|
||||
}
|
||||
|
||||
Array OS_Android::tts_get_voices() const {
|
||||
return TTS_Android::get_voices();
|
||||
}
|
||||
|
||||
void OS_Android::tts_speak(const String &p_text, const String &p_voice, int p_volume, float p_pitch, float p_rate, int p_utterance_id, bool p_interrupt) {
|
||||
TTS_Android::speak(p_text, p_voice, p_volume, p_pitch, p_rate, p_utterance_id, p_interrupt);
|
||||
}
|
||||
|
||||
void OS_Android::tts_pause() {
|
||||
TTS_Android::pause();
|
||||
}
|
||||
|
||||
void OS_Android::tts_resume() {
|
||||
TTS_Android::resume();
|
||||
}
|
||||
|
||||
void OS_Android::tts_stop() {
|
||||
TTS_Android::stop();
|
||||
}
|
||||
|
||||
int OS_Android::get_video_driver_count() const {
|
||||
return 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user