Skip to main content
Glama

mcp-google-sheets

call-audio-model.ts1 kB
import { clarifaiAuth } from '../../'; import { Property, createAction } from '@activepieces/pieces-framework'; import { CommonClarifaiProps, callClarifaiModel, cleanMultiOutputResponse, fileToInput, } from '../common'; import { Data } from 'clarifai-nodejs-grpc/proto/clarifai/api/resources_pb'; export const audioToTextModelPredictAction = createAction({ auth: clarifaiAuth, name: 'audio_text_model', description: 'Call a audio to text AI model', displayName: 'Audio to Text', props: { modelUrl: CommonClarifaiProps.modelUrl, file: Property.File({ description: 'URL or base64 bytes of the audio to classify', displayName: 'Input URL or bytes', required: true, }), }, async run(ctx) { const { auth } = ctx; const { modelUrl, file } = ctx.propsValue; const input = fileToInput(file); const outputs = await callClarifaiModel({ auth, modelUrl, input, }); return cleanMultiOutputResponse(outputs); }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server