Save-SpeechToken

SYNOPSIS

Save a token for the current session.

SYNTAX

Save-SpeechToken [[-Token] <Object>] [<CommonParameters>]

DESCRIPTION

This function takes a token as retreived from Get-SpeechToken and creates a variable in the global scope and saves the token.

EXAMPLES

EXAMPLE 1

Get-SpeechToken -Key <yourkey> | Save-SpeechToken

This example first gets a token then saves it to a global variable in the current PowerShell session.

EXAMPLE 2

Get-SpeechToken -Key <yourkey> -OutVariable token
PS C:\> Save-SpeechToken -Token $token

This example first gets a token then saves it to a global variable in the current PowerShell session.

PARAMETERS

-Token

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

[psobject]

OUTPUTS

None.

NOTES