mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge branch 'master' into develop
# Conflicts: # Moose Development/Moose/Sound/SRS.lua
This commit is contained in:
commit
cd8abd97c5
@ -161,16 +161,16 @@
|
|||||||
-- Google's supported SSML reference: https://cloud.google.com/text-to-speech/docs/ssml
|
-- Google's supported SSML reference: https://cloud.google.com/text-to-speech/docs/ssml
|
||||||
--
|
--
|
||||||
-- ### Amazon Web Service [Only DCS-gRPC backend]
|
-- ### Amazon Web Service [Only DCS-gRPC backend]
|
||||||
--
|
--
|
||||||
-- In order to use Amazon Web Service (ASW) for TTS you need to use @{#MSRS.SetProvider} and @{MSRS.SetProviderOptionsAmazon} functions:
|
-- In order to use Amazon Web Service (AWS) for TTS you need to use @{#MSRS.SetProvider} and @{MSRS.SetProviderOptionsAmazon} functions:
|
||||||
--
|
--
|
||||||
-- msrs:SetProvider(MSRS.Provider.AMAZON)
|
-- msrs:SetProvider(MSRS.Provider.AMAZON)
|
||||||
-- msrs:SetProviderOptionsAmazon(AccessKey, SecretKey, Region)
|
-- msrs:SetProviderOptionsAmazon(AccessKey, SecretKey, Region)
|
||||||
--
|
--
|
||||||
-- The parameters `AccessKey` and `SecretKey` are your ASW access and secret keys, respectively. The parameter `Region` is your [ASW region](https://docs.aws.amazon.com/general/latest/gr/pol.html).
|
-- The parameters `AccessKey` and `SecretKey` are your AWS access and secret keys, respectively. The parameter `Region` is your [AWS region](https://docs.aws.amazon.com/general/latest/gr/pol.html).
|
||||||
--
|
--
|
||||||
-- You can set the voice to use with ASW via @{#MSRS.SetVoiceAmazon}.
|
-- You can set the voice to use with AWS via @{#MSRS.SetVoiceAmazon}.
|
||||||
--
|
--
|
||||||
-- ### Microsoft Azure [Only DCS-gRPC backend]
|
-- ### Microsoft Azure [Only DCS-gRPC backend]
|
||||||
--
|
--
|
||||||
-- In order to use Microsoft Azure for TTS you need to use @{#MSRS.SetProvider} and @{MSRS.SetProviderOptionsAzure} functions:
|
-- In order to use Microsoft Azure for TTS you need to use @{#MSRS.SetProvider} and @{MSRS.SetProviderOptionsAzure} functions:
|
||||||
@ -378,20 +378,20 @@ MSRS.Backend = {
|
|||||||
-- @field #string WINDOWS Microsoft windows (`win`).
|
-- @field #string WINDOWS Microsoft windows (`win`).
|
||||||
-- @field #string GOOGLE Google (`gcloud`).
|
-- @field #string GOOGLE Google (`gcloud`).
|
||||||
-- @field #string AZURE Microsoft Azure (`azure`). Only possible with DCS-gRPC backend.
|
-- @field #string AZURE Microsoft Azure (`azure`). Only possible with DCS-gRPC backend.
|
||||||
-- @field #string AMAZON Amazon Web Service (`asw`). Only possible with DCS-gRPC backend.
|
-- @field #string AMAZON Amazon Web Service (`aws`). Only possible with DCS-gRPC backend.
|
||||||
MSRS.Provider = {
|
MSRS.Provider = {
|
||||||
WINDOWS = "win",
|
WINDOWS = "win",
|
||||||
GOOGLE = "gcloud",
|
GOOGLE = "gcloud",
|
||||||
AZURE = "azure",
|
AZURE = "azure",
|
||||||
AMAZON = "asw",
|
AMAZON = "aws",
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Provider options.
|
--- Provider options.
|
||||||
-- @type MSRS.ProviderOptions
|
-- @type MSRS.ProviderOptions
|
||||||
-- @field #string provider Provider.
|
-- @field #string provider Provider.
|
||||||
-- @field #string credentials Google credentials JSON file (full path).
|
-- @field #string credentials Google credentials JSON file (full path).
|
||||||
-- @field #string key Access key (DCS-gRPC with Google, ASW, AZURE as provider).
|
-- @field #string key Access key (DCS-gRPC with Google, AWS, AZURE as provider).
|
||||||
-- @field #string secret Secret key (DCS-gRPC with ASW as provider)
|
-- @field #string secret Secret key (DCS-gRPC with AWS as provider)
|
||||||
-- @field #string region Region.
|
-- @field #string region Region.
|
||||||
-- @field #string defaultVoice Default voice (not used).
|
-- @field #string defaultVoice Default voice (not used).
|
||||||
-- @field #string voice Voice used.
|
-- @field #string voice Voice used.
|
||||||
@ -795,7 +795,7 @@ end
|
|||||||
|
|
||||||
--- Set to use a specific voice if Amazon Web Service is use as provider (only DCS-gRPC backend). Note that this will override any gender and culture settings.
|
--- Set to use a specific voice if Amazon Web Service is use as provider (only DCS-gRPC backend). Note that this will override any gender and culture settings.
|
||||||
-- @param #MSRS self
|
-- @param #MSRS self
|
||||||
-- @param #string Voice [ASW Voice](https://docs.aws.amazon.com/polly/latest/dg/voicelist.html). Default `"Brian"`.
|
-- @param #string Voice [AWS Voice](https://docs.aws.amazon.com/polly/latest/dg/voicelist.html). Default `"Brian"`.
|
||||||
-- @return #MSRS self
|
-- @return #MSRS self
|
||||||
function MSRS:SetVoiceAmazon(Voice)
|
function MSRS:SetVoiceAmazon(Voice)
|
||||||
|
|
||||||
@ -955,11 +955,11 @@ function MSRS:SetProviderOptionsGoogle(CredentialsFile, AccessKey)
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Set provider options and credentials for Amazon Web Service (ASW). Only supported in combination with DCS-gRPC as backend.
|
--- Set provider options and credentials for Amazon Web Service (AWS). Only supported in combination with DCS-gRPC as backend.
|
||||||
-- @param #MSRS self
|
-- @param #MSRS self
|
||||||
-- @param #string AccessKey Your API access key.
|
-- @param #string AccessKey Your API access key.
|
||||||
-- @param #string SecretKey Your secret key.
|
-- @param #string SecretKey Your secret key.
|
||||||
-- @param #string Region Your ASW [region](https://docs.aws.amazon.com/general/latest/gr/pol.html).
|
-- @param #string Region Your AWS [region](https://docs.aws.amazon.com/general/latest/gr/pol.html).
|
||||||
-- @return #MSRS self
|
-- @return #MSRS self
|
||||||
function MSRS:SetProviderOptionsAmazon(AccessKey, SecretKey, Region)
|
function MSRS:SetProviderOptionsAmazon(AccessKey, SecretKey, Region)
|
||||||
|
|
||||||
@ -1015,7 +1015,7 @@ function MSRS:SetTTSProviderAzure()
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Use Amazon Web Service (ASW) to provide text-to-speech. Only supported if used in combination with DCS-gRPC as backend.
|
--- Use Amazon Web Service (AWS) to provide text-to-speech. Only supported if used in combination with DCS-gRPC as backend.
|
||||||
-- @param #MSRS self
|
-- @param #MSRS self
|
||||||
-- @return #MSRS self
|
-- @return #MSRS self
|
||||||
function MSRS:SetTTSProviderAmazon()
|
function MSRS:SetTTSProviderAmazon()
|
||||||
@ -1564,9 +1564,9 @@ end
|
|||||||
-- Culture = "en-GB",
|
-- Culture = "en-GB",
|
||||||
-- Gender = "male",
|
-- Gender = "male",
|
||||||
-- Voice = "Microsoft Hazel Desktop", -- Voice that is used if no explicit provider voice is specified.
|
-- Voice = "Microsoft Hazel Desktop", -- Voice that is used if no explicit provider voice is specified.
|
||||||
-- Label = "MSRS",
|
-- Label = "MSRS",
|
||||||
-- Provider = "win", --Provider for generating TTS (win, gcloud, azure, asw).
|
-- Provider = "win", --Provider for generating TTS (win, gcloud, azure, aws).
|
||||||
--
|
--
|
||||||
-- -- Windows
|
-- -- Windows
|
||||||
-- win = {
|
-- win = {
|
||||||
-- voice = "Microsoft Hazel Desktop",
|
-- voice = "Microsoft Hazel Desktop",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user