{"version":3,"sources":["../../src/openai/tts.ts"],"sourcesContent":["/**\n * Copyright 2024 The Fire Company\n * Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n  compatOaiSpeechModelRef as openAISpeechModelRef,\n  SpeechConfigSchema,\n} from '../audio';\n\n/** OpenAI speech ModelRef helper, same as the OpenAI-compatible spec. */\nexport { openAISpeechModelRef };\n\nexport const SUPPORTED_TTS_MODELS = {\n  'tts-1': openAISpeechModelRef({ name: 'openai/tts-1' }),\n  'tts-1-hd': openAISpeechModelRef({ name: 'openai/tts-1-hd' }),\n  'gpt-4o-mini-tts': openAISpeechModelRef({\n    name: 'openai/gpt-4o-mini-tts',\n    configSchema: SpeechConfigSchema.omit({ speed: true }),\n  }),\n};\n"],"mappings":"AAgBA;AAAA,EACE,2BAA2B;AAAA,EAC3B;AAAA,OACK;AAKA,MAAM,uBAAuB;AAAA,EAClC,SAAS,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAAA,EACtD,YAAY,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAAA,EAC5D,mBAAmB,qBAAqB;AAAA,IACtC,MAAM;AAAA,IACN,cAAc,mBAAmB,KAAK,EAAE,OAAO,KAAK,CAAC;AAAA,EACvD,CAAC;AACH;","names":[]}