1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-08-04 21:32:54 +02:00

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
This commit is contained in:
Salvador Diaz Fau
2021-01-24 15:28:38 +01:00
parent 47fb09e887
commit 4cc230fea8
2 changed files with 5 additions and 3 deletions

View File

@@ -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');

View File

@@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 238,
"InternalVersion" : 239,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "88.1.4.0"
}