Documentation
¶
Index ¶
- type ClassItem
- type ClassItemArgs
- type ClassItemArray
- type ClassItemArrayInput
- type ClassItemArrayOutput
- func (ClassItemArrayOutput) ElementType() reflect.Type
- func (o ClassItemArrayOutput) Index(i pulumi.IntInput) ClassItemOutput
- func (o ClassItemArrayOutput) ToClassItemArrayOutput() ClassItemArrayOutput
- func (o ClassItemArrayOutput) ToClassItemArrayOutputWithContext(ctx context.Context) ClassItemArrayOutput
- type ClassItemInput
- type ClassItemOutput
- type ClassItemResponse
- type ClassItemResponseArgs
- type ClassItemResponseArray
- type ClassItemResponseArrayInput
- type ClassItemResponseArrayOutput
- func (ClassItemResponseArrayOutput) ElementType() reflect.Type
- func (o ClassItemResponseArrayOutput) Index(i pulumi.IntInput) ClassItemResponseOutput
- func (o ClassItemResponseArrayOutput) ToClassItemResponseArrayOutput() ClassItemResponseArrayOutput
- func (o ClassItemResponseArrayOutput) ToClassItemResponseArrayOutputWithContext(ctx context.Context) ClassItemResponseArrayOutput
- type ClassItemResponseInput
- type ClassItemResponseOutput
- func (ClassItemResponseOutput) ElementType() reflect.Type
- func (o ClassItemResponseOutput) ToClassItemResponseOutput() ClassItemResponseOutput
- func (o ClassItemResponseOutput) ToClassItemResponseOutputWithContext(ctx context.Context) ClassItemResponseOutput
- func (o ClassItemResponseOutput) Value() pulumi.StringOutput
- type CustomClass
- type CustomClassArgs
- type CustomClassInput
- type CustomClassOutput
- type CustomClassState
- type LookupCustomClassArgs
- type LookupCustomClassOutputArgs
- type LookupCustomClassResult
- type LookupCustomClassResultOutput
- func (o LookupCustomClassResultOutput) CustomClassId() pulumi.StringOutput
- func (LookupCustomClassResultOutput) ElementType() reflect.Type
- func (o LookupCustomClassResultOutput) Items() ClassItemResponseArrayOutput
- func (o LookupCustomClassResultOutput) Name() pulumi.StringOutput
- func (o LookupCustomClassResultOutput) ToLookupCustomClassResultOutput() LookupCustomClassResultOutput
- func (o LookupCustomClassResultOutput) ToLookupCustomClassResultOutputWithContext(ctx context.Context) LookupCustomClassResultOutput
- type LookupPhraseSetArgs
- type LookupPhraseSetOutputArgs
- type LookupPhraseSetResult
- type LookupPhraseSetResultOutput
- func (o LookupPhraseSetResultOutput) Boost() pulumi.Float64Output
- func (LookupPhraseSetResultOutput) ElementType() reflect.Type
- func (o LookupPhraseSetResultOutput) Name() pulumi.StringOutput
- func (o LookupPhraseSetResultOutput) Phrases() PhraseResponseArrayOutput
- func (o LookupPhraseSetResultOutput) ToLookupPhraseSetResultOutput() LookupPhraseSetResultOutput
- func (o LookupPhraseSetResultOutput) ToLookupPhraseSetResultOutputWithContext(ctx context.Context) LookupPhraseSetResultOutput
- type Phrase
- type PhraseArgs
- type PhraseArray
- type PhraseArrayInput
- type PhraseArrayOutput
- type PhraseInput
- type PhraseOutput
- type PhraseResponse
- type PhraseResponseArgs
- type PhraseResponseArray
- type PhraseResponseArrayInput
- type PhraseResponseArrayOutput
- func (PhraseResponseArrayOutput) ElementType() reflect.Type
- func (o PhraseResponseArrayOutput) Index(i pulumi.IntInput) PhraseResponseOutput
- func (o PhraseResponseArrayOutput) ToPhraseResponseArrayOutput() PhraseResponseArrayOutput
- func (o PhraseResponseArrayOutput) ToPhraseResponseArrayOutputWithContext(ctx context.Context) PhraseResponseArrayOutput
- type PhraseResponseInput
- type PhraseResponseOutput
- func (o PhraseResponseOutput) Boost() pulumi.Float64Output
- func (PhraseResponseOutput) ElementType() reflect.Type
- func (o PhraseResponseOutput) ToPhraseResponseOutput() PhraseResponseOutput
- func (o PhraseResponseOutput) ToPhraseResponseOutputWithContext(ctx context.Context) PhraseResponseOutput
- func (o PhraseResponseOutput) Value() pulumi.StringOutput
- type PhraseSet
- type PhraseSetArgs
- type PhraseSetInput
- type PhraseSetOutput
- type PhraseSetState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassItem ¶
type ClassItem struct { // The class item's value. Value *string `pulumi:"value"` }
An item of the class.
type ClassItemArgs ¶
type ClassItemArgs struct { // The class item's value. Value pulumi.StringPtrInput `pulumi:"value"` }
An item of the class.
func (ClassItemArgs) ElementType ¶
func (ClassItemArgs) ElementType() reflect.Type
func (ClassItemArgs) ToClassItemOutput ¶
func (i ClassItemArgs) ToClassItemOutput() ClassItemOutput
func (ClassItemArgs) ToClassItemOutputWithContext ¶
func (i ClassItemArgs) ToClassItemOutputWithContext(ctx context.Context) ClassItemOutput
type ClassItemArray ¶
type ClassItemArray []ClassItemInput
func (ClassItemArray) ElementType ¶
func (ClassItemArray) ElementType() reflect.Type
func (ClassItemArray) ToClassItemArrayOutput ¶
func (i ClassItemArray) ToClassItemArrayOutput() ClassItemArrayOutput
func (ClassItemArray) ToClassItemArrayOutputWithContext ¶
func (i ClassItemArray) ToClassItemArrayOutputWithContext(ctx context.Context) ClassItemArrayOutput
type ClassItemArrayInput ¶
type ClassItemArrayInput interface { pulumi.Input ToClassItemArrayOutput() ClassItemArrayOutput ToClassItemArrayOutputWithContext(context.Context) ClassItemArrayOutput }
ClassItemArrayInput is an input type that accepts ClassItemArray and ClassItemArrayOutput values. You can construct a concrete instance of `ClassItemArrayInput` via:
ClassItemArray{ ClassItemArgs{...} }
type ClassItemArrayOutput ¶
type ClassItemArrayOutput struct{ *pulumi.OutputState }
func (ClassItemArrayOutput) ElementType ¶
func (ClassItemArrayOutput) ElementType() reflect.Type
func (ClassItemArrayOutput) Index ¶
func (o ClassItemArrayOutput) Index(i pulumi.IntInput) ClassItemOutput
func (ClassItemArrayOutput) ToClassItemArrayOutput ¶
func (o ClassItemArrayOutput) ToClassItemArrayOutput() ClassItemArrayOutput
func (ClassItemArrayOutput) ToClassItemArrayOutputWithContext ¶
func (o ClassItemArrayOutput) ToClassItemArrayOutputWithContext(ctx context.Context) ClassItemArrayOutput
type ClassItemInput ¶
type ClassItemInput interface { pulumi.Input ToClassItemOutput() ClassItemOutput ToClassItemOutputWithContext(context.Context) ClassItemOutput }
ClassItemInput is an input type that accepts ClassItemArgs and ClassItemOutput values. You can construct a concrete instance of `ClassItemInput` via:
ClassItemArgs{...}
type ClassItemOutput ¶
type ClassItemOutput struct{ *pulumi.OutputState }
An item of the class.
func (ClassItemOutput) ElementType ¶
func (ClassItemOutput) ElementType() reflect.Type
func (ClassItemOutput) ToClassItemOutput ¶
func (o ClassItemOutput) ToClassItemOutput() ClassItemOutput
func (ClassItemOutput) ToClassItemOutputWithContext ¶
func (o ClassItemOutput) ToClassItemOutputWithContext(ctx context.Context) ClassItemOutput
func (ClassItemOutput) Value ¶
func (o ClassItemOutput) Value() pulumi.StringPtrOutput
The class item's value.
type ClassItemResponse ¶
type ClassItemResponse struct { // The class item's value. Value string `pulumi:"value"` }
An item of the class.
type ClassItemResponseArgs ¶
type ClassItemResponseArgs struct { // The class item's value. Value pulumi.StringInput `pulumi:"value"` }
An item of the class.
func (ClassItemResponseArgs) ElementType ¶
func (ClassItemResponseArgs) ElementType() reflect.Type
func (ClassItemResponseArgs) ToClassItemResponseOutput ¶
func (i ClassItemResponseArgs) ToClassItemResponseOutput() ClassItemResponseOutput
func (ClassItemResponseArgs) ToClassItemResponseOutputWithContext ¶
func (i ClassItemResponseArgs) ToClassItemResponseOutputWithContext(ctx context.Context) ClassItemResponseOutput
type ClassItemResponseArray ¶
type ClassItemResponseArray []ClassItemResponseInput
func (ClassItemResponseArray) ElementType ¶
func (ClassItemResponseArray) ElementType() reflect.Type
func (ClassItemResponseArray) ToClassItemResponseArrayOutput ¶
func (i ClassItemResponseArray) ToClassItemResponseArrayOutput() ClassItemResponseArrayOutput
func (ClassItemResponseArray) ToClassItemResponseArrayOutputWithContext ¶
func (i ClassItemResponseArray) ToClassItemResponseArrayOutputWithContext(ctx context.Context) ClassItemResponseArrayOutput
type ClassItemResponseArrayInput ¶
type ClassItemResponseArrayInput interface { pulumi.Input ToClassItemResponseArrayOutput() ClassItemResponseArrayOutput ToClassItemResponseArrayOutputWithContext(context.Context) ClassItemResponseArrayOutput }
ClassItemResponseArrayInput is an input type that accepts ClassItemResponseArray and ClassItemResponseArrayOutput values. You can construct a concrete instance of `ClassItemResponseArrayInput` via:
ClassItemResponseArray{ ClassItemResponseArgs{...} }
type ClassItemResponseArrayOutput ¶
type ClassItemResponseArrayOutput struct{ *pulumi.OutputState }
func (ClassItemResponseArrayOutput) ElementType ¶
func (ClassItemResponseArrayOutput) ElementType() reflect.Type
func (ClassItemResponseArrayOutput) Index ¶
func (o ClassItemResponseArrayOutput) Index(i pulumi.IntInput) ClassItemResponseOutput
func (ClassItemResponseArrayOutput) ToClassItemResponseArrayOutput ¶
func (o ClassItemResponseArrayOutput) ToClassItemResponseArrayOutput() ClassItemResponseArrayOutput
func (ClassItemResponseArrayOutput) ToClassItemResponseArrayOutputWithContext ¶
func (o ClassItemResponseArrayOutput) ToClassItemResponseArrayOutputWithContext(ctx context.Context) ClassItemResponseArrayOutput
type ClassItemResponseInput ¶
type ClassItemResponseInput interface { pulumi.Input ToClassItemResponseOutput() ClassItemResponseOutput ToClassItemResponseOutputWithContext(context.Context) ClassItemResponseOutput }
ClassItemResponseInput is an input type that accepts ClassItemResponseArgs and ClassItemResponseOutput values. You can construct a concrete instance of `ClassItemResponseInput` via:
ClassItemResponseArgs{...}
type ClassItemResponseOutput ¶
type ClassItemResponseOutput struct{ *pulumi.OutputState }
An item of the class.
func (ClassItemResponseOutput) ElementType ¶
func (ClassItemResponseOutput) ElementType() reflect.Type
func (ClassItemResponseOutput) ToClassItemResponseOutput ¶
func (o ClassItemResponseOutput) ToClassItemResponseOutput() ClassItemResponseOutput
func (ClassItemResponseOutput) ToClassItemResponseOutputWithContext ¶
func (o ClassItemResponseOutput) ToClassItemResponseOutputWithContext(ctx context.Context) ClassItemResponseOutput
func (ClassItemResponseOutput) Value ¶
func (o ClassItemResponseOutput) Value() pulumi.StringOutput
The class item's value.
type CustomClass ¶
type CustomClass struct { pulumi.CustomResourceState // If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. CustomClassId pulumi.StringOutput `pulumi:"customClassId"` // A collection of class items. Items ClassItemResponseArrayOutput `pulumi:"items"` // The resource name of the custom class. Name pulumi.StringOutput `pulumi:"name"` }
Create a custom class.
func GetCustomClass ¶
func GetCustomClass(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CustomClassState, opts ...pulumi.ResourceOption) (*CustomClass, error)
GetCustomClass gets an existing CustomClass resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewCustomClass ¶
func NewCustomClass(ctx *pulumi.Context, name string, args *CustomClassArgs, opts ...pulumi.ResourceOption) (*CustomClass, error)
NewCustomClass registers a new resource with the given unique name, arguments, and options.
func (*CustomClass) ElementType ¶
func (*CustomClass) ElementType() reflect.Type
func (*CustomClass) ToCustomClassOutput ¶
func (i *CustomClass) ToCustomClassOutput() CustomClassOutput
func (*CustomClass) ToCustomClassOutputWithContext ¶
func (i *CustomClass) ToCustomClassOutputWithContext(ctx context.Context) CustomClassOutput
type CustomClassArgs ¶
type CustomClassArgs struct { // The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should be 4-63 characters, and valid characters are /a-z-/. CustomClassId pulumi.StringInput // A collection of class items. Items ClassItemArrayInput Location pulumi.StringPtrInput // The resource name of the custom class. Name pulumi.StringPtrInput Project pulumi.StringPtrInput }
The set of arguments for constructing a CustomClass resource.
func (CustomClassArgs) ElementType ¶
func (CustomClassArgs) ElementType() reflect.Type
type CustomClassInput ¶
type CustomClassInput interface { pulumi.Input ToCustomClassOutput() CustomClassOutput ToCustomClassOutputWithContext(ctx context.Context) CustomClassOutput }
type CustomClassOutput ¶
type CustomClassOutput struct{ *pulumi.OutputState }
func (CustomClassOutput) ElementType ¶
func (CustomClassOutput) ElementType() reflect.Type
func (CustomClassOutput) ToCustomClassOutput ¶
func (o CustomClassOutput) ToCustomClassOutput() CustomClassOutput
func (CustomClassOutput) ToCustomClassOutputWithContext ¶
func (o CustomClassOutput) ToCustomClassOutputWithContext(ctx context.Context) CustomClassOutput
type CustomClassState ¶
type CustomClassState struct { }
func (CustomClassState) ElementType ¶
func (CustomClassState) ElementType() reflect.Type
type LookupCustomClassArgs ¶
type LookupCustomClassOutputArgs ¶
type LookupCustomClassOutputArgs struct { CustomClassId pulumi.StringInput `pulumi:"customClassId"` Location pulumi.StringInput `pulumi:"location"` Project pulumi.StringPtrInput `pulumi:"project"` }
func (LookupCustomClassOutputArgs) ElementType ¶
func (LookupCustomClassOutputArgs) ElementType() reflect.Type
type LookupCustomClassResult ¶
type LookupCustomClassResult struct { // If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. CustomClassId string `pulumi:"customClassId"` // A collection of class items. Items []ClassItemResponse `pulumi:"items"` // The resource name of the custom class. Name string `pulumi:"name"` }
func LookupCustomClass ¶
func LookupCustomClass(ctx *pulumi.Context, args *LookupCustomClassArgs, opts ...pulumi.InvokeOption) (*LookupCustomClassResult, error)
Get a custom class.
type LookupCustomClassResultOutput ¶
type LookupCustomClassResultOutput struct{ *pulumi.OutputState }
func LookupCustomClassOutput ¶
func LookupCustomClassOutput(ctx *pulumi.Context, args LookupCustomClassOutputArgs, opts ...pulumi.InvokeOption) LookupCustomClassResultOutput
func (LookupCustomClassResultOutput) CustomClassId ¶
func (o LookupCustomClassResultOutput) CustomClassId() pulumi.StringOutput
If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
func (LookupCustomClassResultOutput) ElementType ¶
func (LookupCustomClassResultOutput) ElementType() reflect.Type
func (LookupCustomClassResultOutput) Items ¶
func (o LookupCustomClassResultOutput) Items() ClassItemResponseArrayOutput
A collection of class items.
func (LookupCustomClassResultOutput) Name ¶
func (o LookupCustomClassResultOutput) Name() pulumi.StringOutput
The resource name of the custom class.
func (LookupCustomClassResultOutput) ToLookupCustomClassResultOutput ¶
func (o LookupCustomClassResultOutput) ToLookupCustomClassResultOutput() LookupCustomClassResultOutput
func (LookupCustomClassResultOutput) ToLookupCustomClassResultOutputWithContext ¶
func (o LookupCustomClassResultOutput) ToLookupCustomClassResultOutputWithContext(ctx context.Context) LookupCustomClassResultOutput
type LookupPhraseSetArgs ¶
type LookupPhraseSetOutputArgs ¶
type LookupPhraseSetOutputArgs struct { Location pulumi.StringInput `pulumi:"location"` PhraseSetId pulumi.StringInput `pulumi:"phraseSetId"` Project pulumi.StringPtrInput `pulumi:"project"` }
func (LookupPhraseSetOutputArgs) ElementType ¶
func (LookupPhraseSetOutputArgs) ElementType() reflect.Type
type LookupPhraseSetResult ¶
type LookupPhraseSetResult struct { // Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0. Boost float64 `pulumi:"boost"` // The resource name of the phrase set. Name string `pulumi:"name"` // A list of word and phrases. Phrases []PhraseResponse `pulumi:"phrases"` }
func LookupPhraseSet ¶
func LookupPhraseSet(ctx *pulumi.Context, args *LookupPhraseSetArgs, opts ...pulumi.InvokeOption) (*LookupPhraseSetResult, error)
Get a phrase set.
type LookupPhraseSetResultOutput ¶
type LookupPhraseSetResultOutput struct{ *pulumi.OutputState }
func LookupPhraseSetOutput ¶
func LookupPhraseSetOutput(ctx *pulumi.Context, args LookupPhraseSetOutputArgs, opts ...pulumi.InvokeOption) LookupPhraseSetResultOutput
func (LookupPhraseSetResultOutput) Boost ¶
func (o LookupPhraseSetResultOutput) Boost() pulumi.Float64Output
Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0.
func (LookupPhraseSetResultOutput) ElementType ¶
func (LookupPhraseSetResultOutput) ElementType() reflect.Type
func (LookupPhraseSetResultOutput) Name ¶
func (o LookupPhraseSetResultOutput) Name() pulumi.StringOutput
The resource name of the phrase set.
func (LookupPhraseSetResultOutput) Phrases ¶
func (o LookupPhraseSetResultOutput) Phrases() PhraseResponseArrayOutput
A list of word and phrases.
func (LookupPhraseSetResultOutput) ToLookupPhraseSetResultOutput ¶
func (o LookupPhraseSetResultOutput) ToLookupPhraseSetResultOutput() LookupPhraseSetResultOutput
func (LookupPhraseSetResultOutput) ToLookupPhraseSetResultOutputWithContext ¶
func (o LookupPhraseSetResultOutput) ToLookupPhraseSetResultOutputWithContext(ctx context.Context) LookupPhraseSetResultOutput
type Phrase ¶
type Phrase struct { // Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0. Boost *float64 `pulumi:"boost"` // The phrase itself. Value *string `pulumi:"value"` }
A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`).
type PhraseArgs ¶
type PhraseArgs struct { // Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0. Boost pulumi.Float64PtrInput `pulumi:"boost"` // The phrase itself. Value pulumi.StringPtrInput `pulumi:"value"` }
A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`).
func (PhraseArgs) ElementType ¶
func (PhraseArgs) ElementType() reflect.Type
func (PhraseArgs) ToPhraseOutput ¶
func (i PhraseArgs) ToPhraseOutput() PhraseOutput
func (PhraseArgs) ToPhraseOutputWithContext ¶
func (i PhraseArgs) ToPhraseOutputWithContext(ctx context.Context) PhraseOutput
type PhraseArray ¶
type PhraseArray []PhraseInput
func (PhraseArray) ElementType ¶
func (PhraseArray) ElementType() reflect.Type
func (PhraseArray) ToPhraseArrayOutput ¶
func (i PhraseArray) ToPhraseArrayOutput() PhraseArrayOutput
func (PhraseArray) ToPhraseArrayOutputWithContext ¶
func (i PhraseArray) ToPhraseArrayOutputWithContext(ctx context.Context) PhraseArrayOutput
type PhraseArrayInput ¶
type PhraseArrayInput interface { pulumi.Input ToPhraseArrayOutput() PhraseArrayOutput ToPhraseArrayOutputWithContext(context.Context) PhraseArrayOutput }
PhraseArrayInput is an input type that accepts PhraseArray and PhraseArrayOutput values. You can construct a concrete instance of `PhraseArrayInput` via:
PhraseArray{ PhraseArgs{...} }
type PhraseArrayOutput ¶
type PhraseArrayOutput struct{ *pulumi.OutputState }
func (PhraseArrayOutput) ElementType ¶
func (PhraseArrayOutput) ElementType() reflect.Type
func (PhraseArrayOutput) Index ¶
func (o PhraseArrayOutput) Index(i pulumi.IntInput) PhraseOutput
func (PhraseArrayOutput) ToPhraseArrayOutput ¶
func (o PhraseArrayOutput) ToPhraseArrayOutput() PhraseArrayOutput
func (PhraseArrayOutput) ToPhraseArrayOutputWithContext ¶
func (o PhraseArrayOutput) ToPhraseArrayOutputWithContext(ctx context.Context) PhraseArrayOutput
type PhraseInput ¶
type PhraseInput interface { pulumi.Input ToPhraseOutput() PhraseOutput ToPhraseOutputWithContext(context.Context) PhraseOutput }
PhraseInput is an input type that accepts PhraseArgs and PhraseOutput values. You can construct a concrete instance of `PhraseInput` via:
PhraseArgs{...}
type PhraseOutput ¶
type PhraseOutput struct{ *pulumi.OutputState }
A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`).
func (PhraseOutput) Boost ¶
func (o PhraseOutput) Boost() pulumi.Float64PtrOutput
Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0.
func (PhraseOutput) ElementType ¶
func (PhraseOutput) ElementType() reflect.Type
func (PhraseOutput) ToPhraseOutput ¶
func (o PhraseOutput) ToPhraseOutput() PhraseOutput
func (PhraseOutput) ToPhraseOutputWithContext ¶
func (o PhraseOutput) ToPhraseOutputWithContext(ctx context.Context) PhraseOutput
type PhraseResponse ¶
type PhraseResponse struct { // Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0. Boost float64 `pulumi:"boost"` // The phrase itself. Value string `pulumi:"value"` }
A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`).
type PhraseResponseArgs ¶
type PhraseResponseArgs struct { // Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0. Boost pulumi.Float64Input `pulumi:"boost"` // The phrase itself. Value pulumi.StringInput `pulumi:"value"` }
A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`).
func (PhraseResponseArgs) ElementType ¶
func (PhraseResponseArgs) ElementType() reflect.Type
func (PhraseResponseArgs) ToPhraseResponseOutput ¶
func (i PhraseResponseArgs) ToPhraseResponseOutput() PhraseResponseOutput
func (PhraseResponseArgs) ToPhraseResponseOutputWithContext ¶
func (i PhraseResponseArgs) ToPhraseResponseOutputWithContext(ctx context.Context) PhraseResponseOutput
type PhraseResponseArray ¶
type PhraseResponseArray []PhraseResponseInput
func (PhraseResponseArray) ElementType ¶
func (PhraseResponseArray) ElementType() reflect.Type
func (PhraseResponseArray) ToPhraseResponseArrayOutput ¶
func (i PhraseResponseArray) ToPhraseResponseArrayOutput() PhraseResponseArrayOutput
func (PhraseResponseArray) ToPhraseResponseArrayOutputWithContext ¶
func (i PhraseResponseArray) ToPhraseResponseArrayOutputWithContext(ctx context.Context) PhraseResponseArrayOutput
type PhraseResponseArrayInput ¶
type PhraseResponseArrayInput interface { pulumi.Input ToPhraseResponseArrayOutput() PhraseResponseArrayOutput ToPhraseResponseArrayOutputWithContext(context.Context) PhraseResponseArrayOutput }
PhraseResponseArrayInput is an input type that accepts PhraseResponseArray and PhraseResponseArrayOutput values. You can construct a concrete instance of `PhraseResponseArrayInput` via:
PhraseResponseArray{ PhraseResponseArgs{...} }
type PhraseResponseArrayOutput ¶
type PhraseResponseArrayOutput struct{ *pulumi.OutputState }
func (PhraseResponseArrayOutput) ElementType ¶
func (PhraseResponseArrayOutput) ElementType() reflect.Type
func (PhraseResponseArrayOutput) Index ¶
func (o PhraseResponseArrayOutput) Index(i pulumi.IntInput) PhraseResponseOutput
func (PhraseResponseArrayOutput) ToPhraseResponseArrayOutput ¶
func (o PhraseResponseArrayOutput) ToPhraseResponseArrayOutput() PhraseResponseArrayOutput
func (PhraseResponseArrayOutput) ToPhraseResponseArrayOutputWithContext ¶
func (o PhraseResponseArrayOutput) ToPhraseResponseArrayOutputWithContext(ctx context.Context) PhraseResponseArrayOutput
type PhraseResponseInput ¶
type PhraseResponseInput interface { pulumi.Input ToPhraseResponseOutput() PhraseResponseOutput ToPhraseResponseOutputWithContext(context.Context) PhraseResponseOutput }
PhraseResponseInput is an input type that accepts PhraseResponseArgs and PhraseResponseOutput values. You can construct a concrete instance of `PhraseResponseInput` via:
PhraseResponseArgs{...}
type PhraseResponseOutput ¶
type PhraseResponseOutput struct{ *pulumi.OutputState }
A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`).
func (PhraseResponseOutput) Boost ¶
func (o PhraseResponseOutput) Boost() pulumi.Float64Output
Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0.
func (PhraseResponseOutput) ElementType ¶
func (PhraseResponseOutput) ElementType() reflect.Type
func (PhraseResponseOutput) ToPhraseResponseOutput ¶
func (o PhraseResponseOutput) ToPhraseResponseOutput() PhraseResponseOutput
func (PhraseResponseOutput) ToPhraseResponseOutputWithContext ¶
func (o PhraseResponseOutput) ToPhraseResponseOutputWithContext(ctx context.Context) PhraseResponseOutput
func (PhraseResponseOutput) Value ¶
func (o PhraseResponseOutput) Value() pulumi.StringOutput
The phrase itself.
type PhraseSet ¶
type PhraseSet struct { pulumi.CustomResourceState // Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0. Boost pulumi.Float64Output `pulumi:"boost"` // The resource name of the phrase set. Name pulumi.StringOutput `pulumi:"name"` // A list of word and phrases. Phrases PhraseResponseArrayOutput `pulumi:"phrases"` }
Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.
func GetPhraseSet ¶
func GetPhraseSet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PhraseSetState, opts ...pulumi.ResourceOption) (*PhraseSet, error)
GetPhraseSet gets an existing PhraseSet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPhraseSet ¶
func NewPhraseSet(ctx *pulumi.Context, name string, args *PhraseSetArgs, opts ...pulumi.ResourceOption) (*PhraseSet, error)
NewPhraseSet registers a new resource with the given unique name, arguments, and options.
func (*PhraseSet) ElementType ¶
func (*PhraseSet) ToPhraseSetOutput ¶
func (i *PhraseSet) ToPhraseSetOutput() PhraseSetOutput
func (*PhraseSet) ToPhraseSetOutputWithContext ¶
func (i *PhraseSet) ToPhraseSetOutputWithContext(ctx context.Context) PhraseSetOutput
type PhraseSetArgs ¶
type PhraseSetArgs struct { // Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0. Boost pulumi.Float64PtrInput Location pulumi.StringPtrInput // The resource name of the phrase set. Name pulumi.StringPtrInput // The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. PhraseSetId pulumi.StringInput // A list of word and phrases. Phrases PhraseArrayInput Project pulumi.StringPtrInput }
The set of arguments for constructing a PhraseSet resource.
func (PhraseSetArgs) ElementType ¶
func (PhraseSetArgs) ElementType() reflect.Type
type PhraseSetInput ¶
type PhraseSetInput interface { pulumi.Input ToPhraseSetOutput() PhraseSetOutput ToPhraseSetOutputWithContext(ctx context.Context) PhraseSetOutput }
type PhraseSetOutput ¶
type PhraseSetOutput struct{ *pulumi.OutputState }
func (PhraseSetOutput) ElementType ¶
func (PhraseSetOutput) ElementType() reflect.Type
func (PhraseSetOutput) ToPhraseSetOutput ¶
func (o PhraseSetOutput) ToPhraseSetOutput() PhraseSetOutput
func (PhraseSetOutput) ToPhraseSetOutputWithContext ¶
func (o PhraseSetOutput) ToPhraseSetOutputWithContext(ctx context.Context) PhraseSetOutput
type PhraseSetState ¶
type PhraseSetState struct { }
func (PhraseSetState) ElementType ¶
func (PhraseSetState) ElementType() reflect.Type