Blizzard and Aurora TTS models via the LMNT HTTP API.
LMNT TTS
LMNTTTS calls LMNT’s /v1/ai/speech/bytes endpoint. The Patter port defaults to format="raw" (PCM_S16LE) at 16 kHz for direct telephony use; callers can switch to mp3, mulaw, wav, aac when needed.
import asynciofrom getpatter import Patter, Twilio, DeepgramSTT, LMNTTTSphone = Patter(carrier=Twilio(), phone_number="+15550001234")agent = phone.agent( stt=DeepgramSTT(), # DEEPGRAM_API_KEY from env tts=LMNTTTS(model="blizzard", voice="leah"), # LMNT_API_KEY from env system_prompt="You are a helpful assistant.",)asyncio.run(phone.serve(agent))
Low-level usage
from getpatter.providers.lmnt_tts import LMNTTTS as _LowLevelTTStts = _LowLevelTTS( api_key="...", # or LMNT_API_KEY env var model="blizzard", voice="leah", # language=None -> defaults to "auto" for blizzard, "en" for aurora format="raw", sample_rate=16000, temperature=1.0, top_p=0.8,)async for chunk in tts.synthesize("Hello from Patter."): ...await tts.close()
Options
Option
Default
Notes
api_key
None
Reads from LMNT_API_KEY when omitted.
model
"blizzard"
"blizzard" or "aurora".
voice
"leah"
LMNT voice id.
language
None
Auto-derived from model when omitted.
format
"raw"
"aac", "mp3", "mulaw", "raw", "wav".
sample_rate
16000
8000, 16000, or 24000.
temperature
1.0
Higher = more expressive.
top_p
0.8
Controls stability.
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Patter | Documentation","colors":{"primary":"#18181B","light":"#FFFFFF","dark":"#18181B"},"logo":{"light":"https://mintcdn.com/patter-06b046ce/QJdc7a9vbef4SNAi/logo/patter-logo.png?fit=max\u0026auto=format\u0026n=QJdc7a9vbef4SNAi\u0026q=85\u0026s=4c57f07b734545f414765ce1ca9d76e1","dark":"https://mintcdn.com/patter-06b046ce/ExsyyesOvzIK4xQa/logo/patter-logo-dark.png?fit=max\u0026auto=format\u0026n=ExsyyesOvzIK4xQa\u0026q=85\u0026s=58b3f60fd7085427f5783fa45b3d03af","href":"https://www.getpatter.com"},"navbar":{"links":[{"href":"https://www.getpatter.com","label":"Website"}],"primary":{"type":"github","label":"GitHub","href":"https://github.com/PatterAI/Patter"}},"footer":{"socials":{"x":"https://x.com/patter_dev","github":"https://github.com/PatterAI/Patter","linkedin":"https://linkedin.com/company/patter-dev"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"patter-06b046ce","hasAudioNarration":false,"actualSubdomain":"patter-06b046ce","customDomains":["docs.getpatter.com"],"gitSource":{"type":"github","owner":"patterai","repo":"patter","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a8cac5ae3fd8a9db00955d6","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"default","tag":"Docs","count":111},{"language":"default","tag":"Setting up Patter","count":88},{"language":"default","tag":"TypeScript SDK","count":57},{"language":"default","tag":"Python SDK","count":56},{"language":"default","tag":"TTS","count":22},{"language":"default","tag":"STT","count":20},{"language":"default","tag":"Engines","count":14},{"language":"default","tag":"LLM","count":10},{"language":"default","tag":"Home","count":9},{"language":"default","tag":"Observability","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"python-sdk/providers/lmnt","slug":"/python-sdk/providers/lmnt","pageMetadata":{"title":"LMNT TTS","description":"Blizzard and Aurora TTS models via the LMNT HTTP API.","icon":"waveform","href":"/python-sdk/providers/lmnt"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Blizzard and Aurora TTS models via the LMNT HTTP API.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`lmnt-tts`,children:`LMNT TTS`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`LMNTTTS`}),` calls LMNT’s `,_jsx(_components.a,{href:`https://docs.lmnt.com/api-reference/speech/synthesize-speech-bytes`,children:_jsx(_components.code,{children:`/v1/ai/speech/bytes`})}),` endpoint. The Patter port defaults to `,_jsx(_components.code,{children:`format=\"raw\"`}),` (PCM_S16LE) at 16 kHz for direct telephony use; callers can switch to `,_jsx(_components.code,{children:`mp3`}),`, `,_jsx(_components.code,{children:`mulaw`}),`, `,_jsx(_components.code,{children:`wav`}),`, `,_jsx(_components.code,{children:`aac`}),` when needed.`]}),`\n`,_jsx(Heading,{level:`2`,id:`install`,children:`Install`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"getpatter[lmnt]\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Namespaced import`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` getpatter.tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` lmnt`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` lmnt.TTS() `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# reads LMNT_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` lmnt.TTS(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blizzard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`voice`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"leah\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Flat alias (equivalent)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` getpatter `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` LMNTTTS`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` LMNTTTS(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blizzard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`voice`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"leah\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`In an agent:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` asyncio`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` getpatter `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Patter, Twilio, DeepgramSTT, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`LMNTTTS`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`phone `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Patter(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`carrier`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Twilio(), `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`phone_number`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+15550001234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`agent `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` phone.agent(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` stt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`DeepgramSTT(), `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# DEEPGRAM_API_KEY from env`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`LMNTTTS(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blizzard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`voice`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"leah\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# LMNT_API_KEY from env`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` system_prompt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You are a helpful assistant.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`asyncio.run(phone.serve(agent))`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`low-level-usage`,children:`Low-level usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` getpatter.providers.lmnt_tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` LMNTTTS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` _LowLevelTTS`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` _LowLevelTTS(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# or LMNT_API_KEY env var`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blizzard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` voice`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"leah\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # language=None -> defaults to \"auto\" for blizzard, \"en\" for aurora`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` format`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"raw\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` sample_rate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`16000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` temperature`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` top_p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` chunk `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` tts.synthesize(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello from Patter.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` tts.close()`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api_key`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`Reads from `,_jsx(_components.code,{children:`LMNT_API_KEY`}),` when omitted.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"blizzard\"`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"blizzard\"`}),` or `,_jsx(_components.code,{children:`\"aurora\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`voice`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"leah\"`})}),_jsx(_components.td,{children:`LMNT voice id.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`language`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsx(_components.td,{children:`Auto-derived from model when omitted.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`format`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"raw\"`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"aac\"`}),`, `,_jsx(_components.code,{children:`\"mp3\"`}),`, `,_jsx(_components.code,{children:`\"mulaw\"`}),`, `,_jsx(_components.code,{children:`\"raw\"`}),`, `,_jsx(_components.code,{children:`\"wav\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sample_rate`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`16000`})}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`8000`}),`, `,_jsx(_components.code,{children:`16000`}),`, or `,_jsx(_components.code,{children:`24000`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`temperature`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1.0`})}),_jsx(_components.td,{children:`Higher = more expressive.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`top_p`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0.8`})}),_jsx(_components.td,{children:`Controls stability.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"LMNT TTS","description":"Blizzard and Aurora TTS models via the LMNT HTTP API.","icon":"waveform","href":"/python-sdk/providers/lmnt"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"LMNT TTS","slug":"lmnt-tts","depth":1,"children":[]},{"title":"Install","slug":"install","depth":2,"children":[]},{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Low-level usage","slug":"low-level-usage","depth":2,"children":[]},{"title":"Options","slug":"options","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"patter-06b046ce","siteName":"Patter | Documentation","title":"LMNT TTS - Patter | Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-08T21:41:05.605Z","originalFileLocation":"python-sdk/providers/lmnt.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Blizzard and Aurora TTS models via the LMNT HTTP API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Patter | Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/patter-06b046ce/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/patter-06b046ce/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/patter-06b046ce/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/patter-06b046ce/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"LMNT TTS - Patter | Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Blizzard and Aurora TTS models via the LMNT HTTP API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Patter | Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getpatter.com/python-sdk/providers/lmnt\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://patter-06b046ce.mintlify.site/_mintlify/api/og/v2?division=TTS\u0026amp;title=LMNT+TTS\u0026amp;description=Blizzard+and+Aurora+TTS+models+via+the+LMNT+HTTP+API.\u0026amp;theme=1e011137ff0e52c14c21be19\u0026amp;signature=0fc8ff06a5f9fd2b9750d1560966c389d4ec9b6ae62698f34f5ec5984cea2130\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"LMNT TTS - Patter | Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Blizzard and Aurora TTS models via the LMNT HTTP API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://patter-06b046ce.mintlify.site/_mintlify/api/og/v2?division=TTS\u0026amp;title=LMNT+TTS\u0026amp;description=Blizzard+and+Aurora+TTS+models+via+the+LMNT+HTTP+API.\u0026amp;theme=1e011137ff0e52c14c21be19\u0026amp;signature=0fc8ff06a5f9fd2b9750d1560966c389d4ec9b6ae62698f34f5ec5984cea2130\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/patter-06b046ce/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Patter | Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getpatter.com/python-sdk/providers/lmnt\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/python-sdk/providers/lmnt.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getpatter.com/#organization\",\"name\":\"Patter | Documentation\",\"url\":\"https://docs.getpatter.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/patter-06b046ce/QJdc7a9vbef4SNAi/logo/patter-logo.png?fit=max\u0026auto=format\u0026n=QJdc7a9vbef4SNAi\u0026q=85\u0026s=4c57f07b734545f414765ce1ca9d76e1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getpatter.com#website\",\"name\":\"Patter | Documentation\",\"url\":\"https://docs.getpatter.com\",\"publisher\":{\"@id\":\"https://docs.getpatter.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getpatter.com/python-sdk/providers/lmnt#webpage\",\"url\":\"https://docs.getpatter.com/python-sdk/providers/lmnt\",\"name\":\"LMNT TTS\",\"description\":\"Blizzard and Aurora TTS models via the LMNT HTTP API.\",\"dateModified\":\"2026-05-08T21:41:05.605Z\",\"isPartOf\":{\"@id\":\"https://docs.getpatter.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getpatter.com/python-sdk/providers/lmnt#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getpatter.com/python-sdk/providers/lmnt#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Setting up Patter\",\"item\":\"https://docs.getpatter.com/python-sdk/agents\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TTS\",\"item\":\"https://docs.getpatter.com/python-sdk/tts\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"LMNT TTS\",\"item\":\"https://docs.getpatter.com/python-sdk/providers/lmnt\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.getpatter.com/python-sdk/providers/lmnt#article\",\"headline\":\"LMNT TTS\",\"name\":\"LMNT TTS\",\"description\":\"Blizzard and Aurora TTS models via the LMNT HTTP API.\",\"url\":\"https://docs.getpatter.com/python-sdk/providers/lmnt\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getpatter.com/python-sdk/providers/lmnt#webpage\"},\"dateModified\":\"2026-05-08T21:41:05.605Z\",\"publisher\":{\"@id\":\"https://docs.getpatter.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getpatter.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Patter | Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Patter | Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/python-sdk/providers/lmnt.md","siteName":"Patter | Documentation","nav":{"global":null,"products":[{"product":"Home","icon":"house","pages":[{"title":"Home","href":"/home"}]},{"product":"Python SDK","icon":"python","description":"Voice AI SDK for Python","tabs":[{"tab":"Docs","icon":"book","groups":[{"group":"Get Started","pages":[{"title":"Python SDK","icon":"compass","href":"/python-sdk/overview"},{"title":"Quickstart","icon":"rocket","href":"/python-sdk/quickstart"},{"title":"Configuration","icon":"gear","href":"/python-sdk/configuration"}]},{"group":"Setting up Patter","icon":"sliders","pages":[{"title":"Agents","icon":"robot","href":"/python-sdk/agents"},{"title":"Carrier","icon":"phone","href":"/python-sdk/carrier"},{"group":"Engines","icon":"bolt","pages":[{"title":"Engines","icon":"bolt","href":"/python-sdk/engines"},{"title":"OpenAI Realtime","icon":"bolt","href":"/python-sdk/providers/openai-realtime"},{"title":"OpenAI Realtime 2 (GA)","icon":"bolt","href":"/python-sdk/providers/openai-realtime-2"},{"title":"Gemini Live","icon":"google","href":"/python-sdk/providers/gemini-live"},{"title":"Ultravox Realtime","icon":"wave-pulse","href":"/python-sdk/providers/ultravox-realtime"},{"title":"ElevenLabs ConvAI","icon":"robot","href":"/python-sdk/providers/elevenlabs-convai"},{"title":"xAI Realtime","icon":"bolt","href":"/python-sdk/providers/xai-realtime"}]},{"group":"STT","icon":"microphone","pages":[{"title":"STT","icon":"microphone","href":"/python-sdk/stt"},{"title":"AssemblyAI STT","icon":"waveform","href":"/python-sdk/providers/assemblyai"},{"title":"Cartesia","icon":"waveform","href":"/python-sdk/providers/cartesia"},{"title":"Deepgram STT","icon":"waveform","href":"/python-sdk/providers/deepgram"},{"title":"Whisper STT (OpenAI)","icon":"waveform","href":"/python-sdk/providers/whisper"},{"title":"Soniox STT","icon":"waveform","href":"/python-sdk/providers/soniox"},{"title":"Speechmatics STT","icon":"waveform","href":"/python-sdk/providers/speechmatics"},{"title":"Telnyx STT","icon":"microphone","href":"/python-sdk/providers/telnyx-stt"},{"title":"xAI STT","icon":"waveform","href":"/python-sdk/providers/xai-stt"},{"title":"Fish Audio STT","icon":"fish","href":"/python-sdk/providers/fish-audio-stt"}]},{"group":"LLM","icon":"brain","pages":[{"title":"LLM","icon":"brain","href":"/python-sdk/llm"},{"title":"Anthropic","icon":"brain","href":"/python-sdk/providers/anthropic"},{"title":"Cerebras","icon":"microchip","href":"/python-sdk/providers/cerebras"},{"title":"Google","icon":"google","href":"/python-sdk/providers/google"},{"title":"Groq","icon":"bolt","href":"/python-sdk/providers/groq"}]},{"group":"TTS","icon":"volume","pages":[{"title":"TTS","icon":"volume","href":"/python-sdk/tts"},{"title":"ElevenLabs TTS (REST)","icon":"volume","href":"/python-sdk/providers/elevenlabs-tts"},{"title":"ElevenLabs WebSocket","icon":"bolt","href":"/python-sdk/providers/elevenlabs-websocket"},{"title":"Rime TTS","description":"Arcana and Mist model families via Rime's HTTP endpoint.","icon":"waveform","href":"/python-sdk/providers/rime"},{"title":"LMNT TTS","icon":"waveform","href":"/python-sdk/providers/lmnt"},{"title":"OpenAI TTS","description":"tts-1, tts-1-hd, and gpt-4o-mini-tts via OpenAI's HTTP TTS endpoint.","icon":"volume","href":"/python-sdk/providers/openai-tts"},{"title":"Cartesia TTS","icon":"volume","href":"/python-sdk/providers/cartesia-tts"},{"title":"Inworld TTS","icon":"waveform","href":"/python-sdk/providers/inworld"},{"title":"Telnyx TTS","icon":"volume","href":"/python-sdk/providers/telnyx-tts"},{"title":"xAI TTS","icon":"waveform","href":"/python-sdk/providers/xai-tts"},{"title":"Fish Audio TTS","icon":"fish","href":"/python-sdk/providers/fish-audio-tts"}]},{"group":"Audio Processing","icon":"wave-square","pages":[{"title":"Silero VAD","icon":"wave-square","href":"/python-sdk/providers/silero-vad"},{"title":"Krisp Filter","icon":"filter","href":"/python-sdk/providers/krisp-filter"},{"title":"DeepFilterNet","icon":"filter","href":"/python-sdk/providers/deepfilternet-filter"}]},{"title":"Tools \u0026 Function Calling","icon":"wrench","href":"/python-sdk/tools"},{"title":"Skills","href":"/python-sdk/skills"},{"title":"Consult your agent","href":"/python-sdk/consult"},{"title":"Guardrails","icon":"shield","href":"/python-sdk/guardrails"},{"title":"Events","icon":"rss","href":"/python-sdk/events"},{"title":"Advanced Features","icon":"sparkles","href":"/python-sdk/features"}]},{"group":"Observability","icon":"chart-line","pages":[{"title":"Metrics \u0026 Cost Tracking","icon":"chart-line","href":"/python-sdk/metrics"},{"title":"Dashboard","icon":"gauge","href":"/python-sdk/dashboard"},{"title":"Call logging","icon":"folder-open","href":"/python-sdk/call-logging"},{"title":"Tracing (OpenTelemetry)","icon":"chart-network","href":"/python-sdk/tracing"},{"title":"Anonymous telemetry","href":"/telemetry"}]},{"group":"Integrations","icon":"plug","pages":[{"title":"PatterTool — phone as a tool","icon":"phone-arrow-up-right","href":"/python-sdk/patter-tool"},{"title":"MCP — Model Context Protocol","icon":"plug","href":"/python-sdk/mcp"}]},{"group":"Development","icon":"code","pages":[{"title":"Test Mode","icon":"flask","href":"/python-sdk/test-mode"},{"title":"Local Mode","icon":"server","href":"/python-sdk/local-mode"}]}]},{"tab":"SDK Reference","icon":"terminal","pages":[{"title":"SDK Reference","href":"/python-sdk/reference"}]}]},{"product":"TypeScript SDK","icon":"js","description":"Voice AI SDK for TypeScript","pages":[{"title":"TypeScript SDK","href":"/typescript-sdk/overview"}]}]},"basePath":"","title":"LMNT TTS - Patter | Documentation","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":[],"chunks":[]}