StarXpand SDK for iOS/Android Developer's Manual Ver. 1.14.0

Last update: Sep. 15, 2026

Use Melody Speaker

The procedure and the reference vary depending on the OS. Select the OS to display.

iOS Android


This section describes the structures of StarPRNT SDK and StarXpand SDK for melody speaker operations.

Understand the differences between these SDKs before migrating to StarXpand SDK.


StarPRNT SDK

Use the appendSound() method in Generate Printing Data to generate printing data for sounding the melody speaker.
To specify the playback sound and volume, use the SMSoundSetting class, which is an argument to appendSound().
Sample code (GitHub)



StarXpand SDK

To sound the melody speaker, generate a MelodySpeakerBuilder class instance in Generate Printing Data and use the actionDriveRegisteredSound() method. Pass this instance as an argument to the addMelodySpeaker() method of the DocumentBuilder instance.
Sample code (GitHub)

Refer to Supported API List for information on whether each API is supported in StarPRNT SDK and StarXpand SDK.

This section describes the structures of StarPRNT SDK and StarXpand SDK for melody speaker operations.

Understand the differences between these SDKs before migrating to StarXpand SDK.


StarPRNT SDK

Use the appendSound() method in Generate Printing Data to generate printing data for sounding the melody speaker.
To specify the playback sound and volume, use the SoundSetting class, which is an argument to appendSound().
Sample code (GitHub)



StarXpand SDK

To sound the melody speaker, generate a MelodySpeakerBuilder class instance in Generate Printing Data and use the actionDriveRegisteredSound() method. Pass this instance as an argument to the addMelodySpeaker() method of the DocumentBuilder instance.
Sample code (GitHub)

Refer to Supported API List for information on whether each API is supported in StarPRNT SDK and StarXpand SDK.