Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

1.1 KB
Raw Blame
import { createPiece } from '@activepieces/pieces-framework';
import { murfAuth } from './lib/common/auth';

import { listVoices } from './lib/actions/list-voices';
import { translateText } from './lib/actions/translate-text';
import { voiceChange } from './lib/actions/voice-change';
import { textToSpeech } from './lib/actions/text-to-speech';
import { PieceCategory } from '@activepieces/pieces-framework';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { BASE_URL } from './lib/common/client';

export const murfApi = createPiece({
  displayName: "Murf AI",
  auth: murfAuth,
  minimumSupportedRelease: '0.36.1',
  logoUrl: 'https://cdn.activepieces.com/pieces/murf-api.png',
  authors: ['Niket2035'],
  categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
  actions: [
    listVoices,
    translateText,
    voiceChange,
    textToSpeech,
    createCustomApiCallAction({
      auth: murfAuth,
      baseUrl: () => BASE_URL,
      authMapping: async (auth) => {
        return {
          'api-key': auth.secret_text,
        };
      },
    }),
  ],
  triggers: [],
});