validateCloneTimbreText(params: ValidateCloneTimbreTextParams)

Requires:
@tuya-miniapp/cloud-api≥1.x.x

Description

Validate whether the ASR text for timbre cloning matches the sample script.

Parameters

ParameterTypeRequiredDescription
YesRequest parameters

Return Value

Type: Promise<boolean>
ValidateCloneTimbreTextResult (for field meanings, see the type definition and minituya response parameters)

Examples

Request example

import { validateCloneTimbreText } from '@tuya-miniapp/cloud-api';

const params = {
  voiceText: 'The weather is great today',
  text: 'The weather is great today',
};

validateCloneTimbreText(params)
  .then(result => {
    console.log('Validation result:', result);
  })
  .catch(error => {
    console.error('Failed to validate ASR text:', error);
  });

Response example

false