SpeechCases
✖
SpeechCases
gives a list of cases of text identified as being of type form that appear in the transcription of audio.
Details and Options


- SpeechCases[{audio1,audio2,…},…] gives identified cases for each audioi.
- Identification type form can be:
-
"type" any text content type (e.g. "Noun", "City") Entity[…,…] a specific entity of a text content type form1form2… - form matching any of the formi
Containing[outer,inner] forms of type outer containing type inner Verbatim["string"] a specific string to be matched exactly pattern a string pattern to be matched - Possible choices for the property prop are:
-
"String" string of the identified text (default) "Position" start and end position of the string in text "Probability" estimated probability that the identification is correct "Interpretation" standard interpretation of the identified string "Snippet" a snippet around the identified string "HighlightedSnippet" a snippet with the identified string highlighted f apply f to the association containing all properties {prop1,prop2,…} a list of property specifications - The following options can be given:
-
AcceptanceThreshold Automatic minimum probability to accept identification Masking All interval of interest PerformanceGoal Automatic favor algorithms with specific advantages TargetDevice "CPU" whether CPU or GPU computation should be used for entity detection VerifyInterpretation False whether interpretability should be verified - SpeechCases uses machine learning. Its methods, training sets and biases included therein may change and yield varied results in different versions of the Wolfram Language.
- SpeechCases may download resources that will be stored in your local object store at $LocalBase, and that can be listed using LocalObjects[] and removed using ResourceRemove.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (13)Survey of the scope of standard use cases
Basic Uses (3)

https://wolfram.com/xid/0g7c0vm8ya6-8yx3i0

Find and interpret all instances of cities:

https://wolfram.com/xid/0g7c0vm8ya6-1j2cfm

Specify the maximum number of identifications to return for each type:

https://wolfram.com/xid/0g7c0vm8ya6-5tkx9a

Form Specification (4)

https://wolfram.com/xid/0g7c0vm8ya6-i3d4sv


https://wolfram.com/xid/0g7c0vm8ya6-yvy7vh

Find cities and countries in a recording:

https://wolfram.com/xid/0g7c0vm8ya6-m6q1ea

Use Alternatives to match multiple types:

https://wolfram.com/xid/0g7c0vm8ya6-xu0e1v

Find all sentences in a string that contain currency amounts:

https://wolfram.com/xid/0g7c0vm8ya6-j8hm3w

Properties (6)
Find currency amounts and get interpretations:

https://wolfram.com/xid/0g7c0vm8ya6-ustv3

Obtain probabilities and interpretations for detected cities and countries:

https://wolfram.com/xid/0g7c0vm8ya6-owvfj3

Specify multiple return types:

https://wolfram.com/xid/0g7c0vm8ya6-6563eh


https://wolfram.com/xid/0g7c0vm8ya6-sx3vsm

Show all available properties in an Association:

https://wolfram.com/xid/0g7c0vm8ya6-2nhhjq

Create a dataset with the properties of several types of entities:

https://wolfram.com/xid/0g7c0vm8ya6-r3frmb

Get the geodetic positions of the locations occurring in a spoken text:

https://wolfram.com/xid/0g7c0vm8ya6-0856r6

Options (3)Common values & functionality for each option
AcceptanceThreshold (1)
Masking (1)
VerifyInterpretation (1)
Properties & Relations (2)Properties of the function, and connections to other functions
SpeechCases is effectively calling TextCases on the result of SpeechRecognize:

https://wolfram.com/xid/0g7c0vm8ya6-j0wjef


https://wolfram.com/xid/0g7c0vm8ya6-hedy48

SpeechCases supports the same identification types as TextCases:

https://wolfram.com/xid/0g7c0vm8ya6-73xsdx


https://wolfram.com/xid/0g7c0vm8ya6-hfxdjr

They identify the same substrings for a given type and transcription:

https://wolfram.com/xid/0g7c0vm8ya6-g3hmo6

Wolfram Research (2020), SpeechCases, Wolfram Language function, https://reference.wolfram.com/language/ref/SpeechCases.html.
Text
Wolfram Research (2020), SpeechCases, Wolfram Language function, https://reference.wolfram.com/language/ref/SpeechCases.html.
Wolfram Research (2020), SpeechCases, Wolfram Language function, https://reference.wolfram.com/language/ref/SpeechCases.html.
CMS
Wolfram Language. 2020. "SpeechCases." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SpeechCases.html.
Wolfram Language. 2020. "SpeechCases." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SpeechCases.html.
APA
Wolfram Language. (2020). SpeechCases. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SpeechCases.html
Wolfram Language. (2020). SpeechCases. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SpeechCases.html
BibTeX
@misc{reference.wolfram_2025_speechcases, author="Wolfram Research", title="{SpeechCases}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/SpeechCases.html}", note=[Accessed: 10-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_speechcases, organization={Wolfram Research}, title={SpeechCases}, year={2020}, url={https://reference.wolfram.com/language/ref/SpeechCases.html}, note=[Accessed: 10-July-2025
]}