v1

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 (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

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 ClassItemResponseArrayOutput

type ClassItemResponseArrayOutput struct{ *pulumi.OutputState }

func (ClassItemResponseArrayOutput) ElementType

func (ClassItemResponseArrayOutput) Index

func (ClassItemResponseArrayOutput) ToClassItemResponseArrayOutput

func (o ClassItemResponseArrayOutput) ToClassItemResponseArrayOutput() ClassItemResponseArrayOutput

func (ClassItemResponseArrayOutput) ToClassItemResponseArrayOutputWithContext

func (o ClassItemResponseArrayOutput) ToClassItemResponseArrayOutputWithContext(ctx context.Context) ClassItemResponseArrayOutput

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

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 LookupCustomClassArgs struct {
	CustomClassId string  `pulumi:"customClassId"`
	Location      string  `pulumi:"location"`
	Project       *string `pulumi:"project"`
}

type LookupCustomClassOutputArgs

type LookupCustomClassOutputArgs struct {
	CustomClassId pulumi.StringInput    `pulumi:"customClassId"`
	Location      pulumi.StringInput    `pulumi:"location"`
	Project       pulumi.StringPtrInput `pulumi:"project"`
}

func (LookupCustomClassOutputArgs) ElementType

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 (LookupCustomClassResultOutput) CustomClassId

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) Items

A collection of class items.

func (LookupCustomClassResultOutput) Name

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 LookupPhraseSetArgs struct {
	Location    string  `pulumi:"location"`
	PhraseSetId string  `pulumi:"phraseSetId"`
	Project     *string `pulumi:"project"`
}

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 (LookupPhraseSetResultOutput) Boost

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) Name

The resource name of the phrase set.

func (LookupPhraseSetResultOutput) Phrases

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}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.

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}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.

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 (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}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.

func (PhraseOutput) Boost

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

func (PhraseOutput) Value

The phrase itself.

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}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.

type PhraseResponseArrayOutput

type PhraseResponseArrayOutput struct{ *pulumi.OutputState }

func (PhraseResponseArrayOutput) ElementType

func (PhraseResponseArrayOutput) ElementType() reflect.Type

func (PhraseResponseArrayOutput) Index

func (PhraseResponseArrayOutput) ToPhraseResponseArrayOutput

func (o PhraseResponseArrayOutput) ToPhraseResponseArrayOutput() PhraseResponseArrayOutput

func (PhraseResponseArrayOutput) ToPhraseResponseArrayOutputWithContext

func (o PhraseResponseArrayOutput) ToPhraseResponseArrayOutputWithContext(ctx context.Context) PhraseResponseArrayOutput

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}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.

func (PhraseResponseOutput) Boost

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

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) ElementType() reflect.Type

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL