JigsawStack
Orate supports JigsawStack's speech and transcription services.
JigsawStack offer a suite of small fast models that automate the boring and complex tasks in every tech stack with specialized finetuning.
Setup
The JigsawStack provider is available by default in Orate. To import it, you can use the following code:
Configuration
You can use JigsawStack by creating a new instance of the JigsawStack
class:
This will use the JIGSAWSTACK_API_KEY
environment variable. If you don't have this variable set, you can pass your API key as an argument to the constructor.
Usage
The JigsawStack provider provides a single interface for all of JigsawStack's speech and transcription services.
Text to Speech
The JigsawStack provider provides a tts
function that allows you to create a text-to-speech synthesis function using JigsawStack TTS. By default, the tts
function uses the en-US-female-27
voice (accent).
You can specify the model and voice to use by passing them as arguments to the tts
function.
You can also specify specific JigsawStack properties by passing them as an argument to the tts
function.
Speech to Text
The JigsawStack provider provides a stt
function that allows you to create a speech-to-text transcription function using JigsawStack.
You can also specify specific JigsawStack properties by passing them as an argument to the stt
function.