Edit

How to use post-processing

Note

Post-stream refinement is currently in public preview. Preview features are provided without a service-level agreement and aren't recommended for production workloads. Some features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

Change post-processing option

The Speech service can apply post-processing to recognition results before they're returned. You can control which post-processing option is used by setting the SpeechServiceResponse_PostProcessingOption property on the SpeechConfig instance used to create a SpeechRecognizer.

The following values are supported:

Value Description
TrueText Applies display formatting to recognition results, including punctuation and capitalization, to produce more readable output.
PostRefinement Improves final transcript accuracy by running a second recognition pass in parallel with real-time streaming. Intermediate results remain low-latency; only the final result for each segment is replaced with a more accurate version. This option is currently in public preview.

Example: To enable TrueText post-processing:

speechConfig.SetProperty(PropertyId.SpeechServiceResponse_PostProcessingOption, "TrueText");

Change post-processing option

The Speech service can apply post-processing to recognition results before they're returned. You can control which post-processing option is used by setting the SpeechServiceResponse_PostProcessingOption property on the SpeechConfig instance used to create a SpeechRecognizer.

The following values are supported:

Value Description
TrueText Applies display formatting to recognition results, including punctuation and capitalization, to produce more readable output.
PostRefinement Improves final transcript accuracy by running a second recognition pass in parallel with real-time streaming. Intermediate results remain low-latency; only the final result for each segment is replaced with a more accurate version. This option is currently in public preview.

Example: To enable TrueText post-processing:

speechConfig->SetProperty(PropertyId::SpeechServiceResponse_PostProcessingOption, "TrueText");

Change post-processing option

The Speech service can apply post-processing to recognition results before they're returned. You can control which post-processing option is used by setting the SpeechServiceResponse_PostProcessingOption property on the SpeechConfig instance used to create a SpeechRecognizer.

The following values are supported:

Value Description
TrueText Applies display formatting to recognition results, including punctuation and capitalization, to produce more readable output.
PostRefinement Improves final transcript accuracy by running a second recognition pass in parallel with real-time streaming. Intermediate results remain low-latency; only the final result for each segment is replaced with a more accurate version. This option is currently in public preview.

Example: To enable TrueText post-processing:

speechConfig.SetProperty(common.SpeechServiceResponsePostProcessingOption, "TrueText")

Change post-processing option

The Speech service can apply post-processing to recognition results before they're returned. You can control which post-processing option is used by setting the SpeechServiceResponse_PostProcessingOption property on the SpeechConfig instance used to create a SpeechRecognizer.

The following values are supported:

Value Description
TrueText Applies display formatting to recognition results, including punctuation and capitalization, to produce more readable output.
PostRefinement Improves final transcript accuracy by running a second recognition pass in parallel with real-time streaming. Intermediate results remain low-latency; only the final result for each segment is replaced with a more accurate version. This option is currently in public preview.

Example: To enable TrueText post-processing:

speechConfig.setProperty(PropertyId.SpeechServiceResponse_PostProcessingOption, "TrueText");

Change post-processing option

The Speech service can apply post-processing to recognition results before they're returned. You can control which post-processing option is used by setting the SpeechServiceResponse_PostProcessingOption property on the SpeechConfig instance used to create a SpeechRecognizer.

The following values are supported:

Value Description
TrueText Applies display formatting to recognition results, including punctuation and capitalization, to produce more readable output.
PostRefinement Improves final transcript accuracy by running a second recognition pass in parallel with real-time streaming. Intermediate results remain low-latency; only the final result for each segment is replaced with a more accurate version. This option is currently in public preview.

Example: To enable TrueText post-processing:

speechConfig.setProperty(sdk.PropertyId.SpeechServiceResponse_PostProcessingOption, "TrueText");

Change post-processing option

The Speech service can apply post-processing to recognition results before they're returned. You can control which post-processing option is used by setting the SpeechServiceResponse_PostProcessingOption property on the SpeechConfig instance used to create a SpeechRecognizer.

The following values are supported:

Value Description
TrueText Applies display formatting to recognition results, including punctuation and capitalization, to produce more readable output.
PostRefinement Improves final transcript accuracy by running a second recognition pass in parallel with real-time streaming. Intermediate results remain low-latency; only the final result for each segment is replaced with a more accurate version. This option is currently in public preview.

Example: To enable TrueText post-processing:

[speechConfig setPropertyTo:@"TrueText" byId:SPXSpeechServiceResponsePostProcessingOption];

Change post-processing option

The Speech service can apply post-processing to recognition results before they're returned. You can control which post-processing option is used by setting the SpeechServiceResponse_PostProcessingOption property on the SpeechConfig instance used to create a SpeechRecognizer.

The following values are supported:

Value Description
TrueText Applies display formatting to recognition results, including punctuation and capitalization, to produce more readable output.
PostRefinement Improves final transcript accuracy by running a second recognition pass in parallel with real-time streaming. Intermediate results remain low-latency; only the final result for each segment is replaced with a more accurate version. This option is currently in public preview.

Example: To enable TrueText post-processing:

speechConfig.setPropertyTo("TrueText", by: SPXPropertyId.speechServiceResponsePostProcessingOption)

Change post-processing option

The Speech service can apply post-processing to recognition results before they're returned. You can control which post-processing option is used by setting the SpeechServiceResponse_PostProcessingOption property on the SpeechConfig instance used to create a SpeechRecognizer.

The following values are supported:

Value Description
TrueText Applies display formatting to recognition results, including punctuation and capitalization, to produce more readable output.
PostRefinement Improves final transcript accuracy by running a second recognition pass in parallel with real-time streaming. Intermediate results remain low-latency; only the final result for each segment is replaced with a more accurate version. This option is currently in public preview.

Example: To enable TrueText post-processing:

speech_config.set_property(property_id=speechsdk.PropertyId.SpeechServiceResponse_PostProcessingOption, value="TrueText")

Change post-processing option

Post-processing options aren't configurable through the REST API. To use post-processing, use the Speech SDK.

Change post-processing option

Post-processing options aren't configurable through the Speech CLI. To use post-processing, use the Speech SDK.