This is a small test of spoken output from Stata using the built-in speech service in macOS.
A possible use is announcing that an analysis has finished.
Copy the code below into Stata's Do-file Editor and run it.
You should hear “The analysis is complete.”
This is a sample message; it does not run an analysis or change the data in memory.
Requirements: Stata 16 or later on macOS. No additional Stata package is needed.
The code block itself does not play audio in the browser.
If you try it, did you hear the message?
Please mention your Stata and macOS versions.
The voice may differ with your system settings.
This tests speech output only. It does not listen to the microphone.
A possible use is announcing that an analysis has finished.
Copy the code below into Stata's Do-file Editor and run it.
You should hear “The analysis is complete.”
This is a sample message; it does not run an analysis or change the data in memory.
Requirements: Stata 16 or later on macOS. No additional Stata package is needed.
The code block itself does not play audio in the browser.
Code:
version 16.0
if !strpos("`c(machine_type)'", "Mac") {
display as error "This example requires macOS."
exit 198
}
display as text "The analysis is complete."
shell /usr/bin/say "The analysis is complete."
Please mention your Stata and macOS versions.
The voice may differ with your system settings.
This tests speech output only. It does not listen to the microphone.

Comment