
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@imgly/plugin-ai-audio-generation-web
Advanced tools
A plugin for integrating AI audio generation capabilities into CreativeEditor SDK.
The @imgly/plugin-ai-audio-generation-web
package enables users to generate audio content using AI directly within CreativeEditor SDK. This shipped provider leverages the ElevenLabs platform to provide high-quality text-to-speech and sound effect generation.
Features include:
npm install @imgly/plugin-ai-audio-generation-web
To use the plugin, import it and configure it with your preferred providers:
import CreativeEditorSDK from '@cesdk/cesdk-js';
import AudioGeneration from '@imgly/plugin-ai-audio-generation-web';
import Elevenlabs from '@imgly/plugin-ai-audio-generation-web/elevenlabs';
// Initialize CreativeEditor SDK
CreativeEditorSDK.create(domElement, {
license: 'your-license-key'
// Other configuration options...
}).then(async (cesdk) => {
// Add the audio generation plugin
cesdk.addPlugin(
AudioGeneration({
// Text-to-speech provider
text2speech: Elevenlabs.ElevenMultilingualV2({
proxyUrl: 'https://your-elevenlabs-proxy.example.com'
}),
// Sound effects provider (optional)
text2sound: Elevenlabs.ElevenSoundEffects({
proxyUrl: 'https://your-elevenlabs-proxy.example.com'
}),
// Optional configuration
debug: false,
dryRun: false
})
);
});
The plugin comes with two pre-configured providers for ElevenLabs:
A versatile text-to-speech engine that supports multiple languages and voices:
text2speech: Elevenlabs.ElevenMultilingualV2({
proxyUrl: 'https://your-elevenlabs-proxy.example.com'
});
Key features:
A sound effect generator that creates audio from text descriptions:
text2sound: Elevenlabs.ElevenSoundEffects({
proxyUrl: 'https://your-elevenlabs-proxy.example.com'
});
Key features:
The plugin accepts the following configuration options:
Option | Type | Description | Default |
---|---|---|---|
text2speech | Provider | Provider for text-to-speech generation | undefined |
text2sound | Provider | Provider for sound effect generation | undefined |
debug | boolean | Enable debug logging | false |
dryRun | boolean | Simulate generation without API calls | false |
middleware | Function | Custom middleware for the generation process | undefined |
For security reasons, it's recommended to use a proxy server to handle API requests to ElevenLabs. The proxy URL is required when configuring providers:
text2speech: Elevenlabs.ElevenMultilingualV2({
proxyUrl: 'https://your-elevenlabs-proxy.example.com'
});
You'll need to implement a proxy server that forwards requests to ElevenLabs and handles authentication.
AudioGeneration(options: PluginConfiguration): EditorPlugin
Creates and returns a plugin that can be added to CreativeEditor SDK.
interface PluginConfiguration {
// Provider for text-to-speech generation
text2speech?: AiAudioProvider;
// Provider for sound effect generation
text2sound?: AiAudioProvider;
// Enable debug logging
debug?: boolean;
// Skip actual API calls for testing
dryRun?: boolean;
// Extend the generation process
middleware?: GenerationMiddleware;
}
Elevenlabs.ElevenMultilingualV2(config: {
proxyUrl: string;
debug?: boolean;
}): AiAudioProvider
Elevenlabs.ElevenSoundEffects(config: {
proxyUrl: string;
debug?: boolean;
}): AiAudioProvider
The plugin automatically registers the following UI components:
ly.img.ai/elevenlabs/monolingual/v1
ly.img.ai/elevenlabs/sound-generation
ly.img.ai/audio-generation/speech/elevenlabs.voiceSelection
Generated audio files are automatically stored in asset sources with the following IDs:
elevenlabs/monolingual/v1.history
elevenlabs/sound-generation.history
This plugin is part of the IMG.LY plugin ecosystem for CreativeEditor SDK. Please refer to the license terms in the package.
FAQs
AI audio generation plugin for the CE.SDK editor
The npm package @imgly/plugin-ai-audio-generation-web receives a total of 616 weekly downloads. As such, @imgly/plugin-ai-audio-generation-web popularity was classified as not popular.
We found that @imgly/plugin-ai-audio-generation-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.