1 // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "speech_extension.h"
7 #include "speech_logs.h"
8 #include "speech_instance.h"
10 std::ofstream _s_f_log;
12 common::Extension* CreateExtension() {
13 return new SpeechExtension();
16 // This will be generated from speech_api.js
17 extern const char kSource_speech_api[];
19 SpeechExtension::SpeechExtension() {
20 SetExtensionName("tizen.speechSynthesis");
21 SetJavaScriptAPI(kSource_speech_api);
22 const char *entry_pointer[] = {
23 "tizen.SpeechRecognition",
24 "tizen.SpeechSynthesisUtterance",
27 SetExtraJSEntryPoints(entry_pointer);
30 SpeechExtension::~SpeechExtension() {}
32 common::Instance* SpeechExtension::CreateInstance() {
34 return new SpeechInstance;