startScore abstract method

Future<int> startScore(
  1. String resourceID,
  2. int pitchValueInterval
)

Start scoring.

Available since: 2.15.0 Description: Start the scoring function.After starting scoring, the scoring result OnCurrentPitchValueUpdate callback will be received according to the set callback time interval. Use case: Can be used to display the singing score on the view. When to call: After obtaining verbatim lyrics and playing the accompaniment resources of copyrighted music. Restrictions: Only support use this api after startPublishingStream.

  • resourceID the resource ID corresponding to the accompaniment or accompaniment clip.
  • pitchValueInterval the time interval of real-time pitch line callback, in milliseconds, the default is 50 milliseconds.

Implementation

Future<int> startScore(String resourceID, int pitchValueInterval);