Skip to content

Commit bd59e3e

Browse files
author
sowens-csd
committed
feat: fix resultType for Windows
1 parent c2cf267 commit bd59e3e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# speech_to_text_windows releases
22

3-
## 1.0.0-beta.11
3+
## 1.0.0-beta.12
44

55
### New
66
* First implementation of Windows for speech_to_text

speech_to_text_windows/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: speech_to_text_windows
22
description: Windows implementation of speech_to_text plugin using UWP Speech Recognition APIs
3-
version: 1.0.0-beta.11
3+
version: 1.0.0-beta.12
44
homepage: https://github.com/csdcorp/speech_to_text
55

66
environment:

speech_to_text_windows/windows/speech_to_text_windows_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void SpeechToTextWindowsPlugin::GetLocales(
332332
void SpeechToTextWindowsPlugin::SendTextRecognition(const std::string& text, bool is_final) {
333333
if (m_channel) {
334334
std::string json_result = "{\"alternates\":[{\"recognizedWords\":\"" + text +
335-
"\",\"confidence\":0.85}],\"finalResult\":" + (is_final ? std::to_string(FINAL_RESULT) : std::to_string(PARTIAL_RESULT)) + "}";
335+
"\",\"confidence\":0.85}],\"resultType\":" + (is_final ? std::to_string(FINAL_RESULT) : std::to_string(PARTIAL_RESULT)) + "}";
336336
std::cout << "Sending to Flutter: " << json_result << std::endl;
337337
m_channel->InvokeMethod("textRecognition",
338338
std::make_unique<flutter::EncodableValue>(json_result));

0 commit comments

Comments
 (0)