You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-08-14 21:42:50 +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:
@@ -677,7 +677,7 @@ begin
|
|||||||
FDeleteCache := False;
|
FDeleteCache := False;
|
||||||
FDeleteCookies := False;
|
FDeleteCookies := False;
|
||||||
FEnableMediaStream := True;
|
FEnableMediaStream := True;
|
||||||
FEnableSpeechInput := True;
|
FEnableSpeechInput := False;
|
||||||
FUseFakeUIForMediaStream := False;
|
FUseFakeUIForMediaStream := False;
|
||||||
FEnableUsermediaScreenCapturing := False;
|
FEnableUsermediaScreenCapturing := False;
|
||||||
FEnableGPU := False;
|
FEnableGPU := False;
|
||||||
@@ -1887,7 +1887,9 @@ var
|
|||||||
TempFormatSettings : TFormatSettings;
|
TempFormatSettings : TFormatSettings;
|
||||||
begin
|
begin
|
||||||
ReplaceSwitch(aKeys, aValues, '--enable-media-stream', IntToStr(Ord(FEnableMediaStream)));
|
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
|
if FUseFakeUIForMediaStream then
|
||||||
ReplaceSwitch(aKeys, aValues, '--use-fake-ui-for-media-stream');
|
ReplaceSwitch(aKeys, aValues, '--use-fake-ui-for-media-stream');
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 238,
|
"InternalVersion" : 239,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "88.1.4.0"
|
"Version" : "88.1.4.0"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user