Class LiveMusicSessionExperimental

Represents a connection to the API.

Constructors

Properties

conn: WebSocket

Methods

  • Experimental

    Terminates the WebSocket connection.

    Returns void

  • Experimental

    Temporarily halt the music stream. Use play to resume from the current position.

    Returns void

  • Experimental

    Start the music stream.

    Returns void

  • Experimental

    Resets the context of the music generation without stopping it. Retains the current prompts and config.

    Returns void

  • Experimental

    Sets a configuration to the model. Updates the session's current music generation config.

    Parameters

    • params: LiveMusicSetConfigParameters

      Contains one property, musicGenerationConfig.

      • musicGenerationConfig to set in the model. Passing an empty or undefined config to the model will reset the config to defaults.

    Returns Promise<void>

  • Experimental

    Stop the music stream and reset the state. Retains the current prompts and config.

    Returns void