Function createAudioProvider

  • Create an audio provider instance by provider ID.

    Looks up the factory in the registry and returns a new uninitialised provider. The caller must call provider.initialize(config) before use.

    Parameters

    • providerId: string

      Provider identifier (e.g. "suno", "stable-audio", "elevenlabs-sfx").

    Returns IAudioGenerator

    A new uninitialised IAudioGenerator instance.

    Throws

    When no factory is registered for the given provider ID.