with Groq Cloud and Azure Speech Service?
Creates a model response for the given chat conversation. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
groqcloud: {
type: "app",
app: "groqcloud",
}
},
async run({steps, $}) {
const data = {"messages": [{"role": "user", "content": "What is Pipedream?"}], "model": "llama3-8b-8192"}
return await axios($, {
method: "post",
url: `https://api.groq.com/openai/v1/chat/completions`,
headers: {
Authorization: `Bearer ${this.groqcloud.$auth.api_key}`,
},
data,
})
},
})
The Azure Speech Service API offers a suite of speech-to-text, text-to-speech, and speech translation capabilities, allowing you to integrate advanced speech processing into your applications. With the API, you can transcribe audio into text, convert text into natural-sounding speech, and even translate spoken languages in real-time. Leveraging these features within Pipedream, you can automate workflows that respond to voice commands, generate audio content from textual data, or provide real-time translation services for global communication.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_speech_service: {
type: "app",
app: "azure_speech_service",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.azure_speech_service.$auth.endpoint}/speechtotext/v3.1/healthstatus`,
headers: {
"Ocp-Apim-Subscription-Key": `${this.azure_speech_service.$auth.api_key}`,
},
})
},
})