Language Model Action Set
Transcribing Speech with a PyTorch Acoustic Model and a PyTorch Speaker Model
This example is not available for the CAS programming language.
Transcribing Speech with a PyTorch Acoustic Model and a PyTorch Speaker Model
This example is not available for the Lua programming language.
Transcribing Speech with a PyTorch Acoustic Model and a PyTorch Speaker Model
This section contains Python code. For more information about coding in Python, see Getting Started with SAS Viya for Python and SAS Viya: System Programming Guide.
The following code shows how you can use the transcribeSpeech action to convert speech to text by using a PyTorch acoustic model and a PyTorch speaker model:
s.loadactionset(actionset='langModel')
s.langmodel.transcribespeech(
acousticmodel = {'model':{'name':'acoustic_model'}},
speakermodel = {'model':{'name':'speaker_model'}},
casout = {'name':'sample_output',
'replace':True},
languagemodel = {'model':{'name':'language_model'}},
table = {'name':'sample_input'}
)
Transcribing Speech with a PyTorch Acoustic Model and a PyTorch Speaker Model
This example is not available for the R programming language.
Last updated: August 04, 2026