History

Add SpeechRecognizer

Ryan Huffman committed 12 years ago

Commit ffb178c1 parent d4d40697 files · +152 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -170,6 +170,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 169 unmodified lines
170170 _runningScriptsWidget(NULL),
171171 _runningScriptsWidgetWasVisible(false),
172172 _trayIcon(new QSystemTrayIcon(_window)),
173+ _speechRecognizer(),
173174 _lastNackTime(usecTimestampNow()),
174175 _lastSendDownstreamAudioStats(usecTimestampNow())
175176 {
@@ -1443,6 +1444,10 @@ void Application::setLowVelocityFilter(bool lowVelocityFilter) { · 1267 unmodified lines
14431444 getSixenseManager()->setLowVelocityFilter(lowVelocityFilter);
14441445 }
14451446
1447+void Application::setSpeechRecognitionEnabled(bool enabled) {
1448+ _speechRecognizer.setEnabled(enabled);
1449+}
1450+
14461451 void Application::doKillLocalVoxels() {
14471452 _wantToKillLocalVoxels = true;
14481453 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t