From 4cc230fea83fd0c6a5cdeda4dc61543aeec37d61 Mon Sep 17 00:00:00 2001 From: Salvador Diaz Fau Date: Sun, 24 Jan 2021 15:28:38 +0100 Subject: [PATCH] Changed the GlobalCEFApp.EnableSpeechInput default value to false The Speech API requires building the CEF binaries with your own Google API keys and the service is not free. http://www.chromium.org/developers/how-tos/api-keys https://cloud.google.com/speech-to-text/pricing --- source/uCEFApplicationCore.pas | 6 ++++-- update_CEF4Delphi.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/uCEFApplicationCore.pas b/source/uCEFApplicationCore.pas index 102ed618..0127f48b 100644 --- a/source/uCEFApplicationCore.pas +++ b/source/uCEFApplicationCore.pas @@ -677,7 +677,7 @@ begin FDeleteCache := False; FDeleteCookies := False; FEnableMediaStream := True; - FEnableSpeechInput := True; + FEnableSpeechInput := False; FUseFakeUIForMediaStream := False; FEnableUsermediaScreenCapturing := False; FEnableGPU := False; @@ -1887,7 +1887,9 @@ var TempFormatSettings : TFormatSettings; begin ReplaceSwitch(aKeys, aValues, '--enable-media-stream', IntToStr(Ord(FEnableMediaStream))); - ReplaceSwitch(aKeys, aValues, '--enable-speech-input', IntToStr(Ord(FEnableSpeechInput))); + + if FEnableSpeechInput then + ReplaceSwitch(aKeys, aValues, '--enable-speech-input'); if FUseFakeUIForMediaStream then ReplaceSwitch(aKeys, aValues, '--use-fake-ui-for-media-stream'); diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json index 18406ae6..7c93f577 100644 --- a/update_CEF4Delphi.json +++ b/update_CEF4Delphi.json @@ -2,7 +2,7 @@ "UpdateLazPackages" : [ { "ForceNotify" : true, - "InternalVersion" : 238, + "InternalVersion" : 239, "Name" : "cef4delphi_lazarus.lpk", "Version" : "88.1.4.0" }