Task Process
Last updated
Last updated
The Text-to-Speech (TTS) task process involves multiple actors working in tandem, including clients, training nodes, processor nodes, and validator nodes. The process ensures efficient task execution with a balance of privacy, quality, and cost.
Step 1: Client Interaction and Data Submission
The client initiates a TTS task by providing the desired specifications (voice characteristics, , pitch, tone, etc.) and the text to be synthesized. If the requested voice and details are not pre-trained, the client must supply additional training data, such as voice samples and the process continue on the Training Process.
Voice samples, text and details provided are encrypted using symmetric encryption before submission, ensuring data remains private throughout processing. Only authorized nodes can decrypt and access the data for the duration of the task.
Step 2: Cost Calculation and Node Selection
The network calculates the task’s cost by selecting processor, training, and validator nodes using a multi-objective optimization function.
Where:
This balances the cost against the quality of each node to achieve optimal efficiency.
Step 3: Payment and Smart Contract Management
If the Client accepts the cost, he must send tokens to a smart contract.
Tokens sent by the client are locked into an escrow contract that only releases payments upon successful completion and validation of the task, mitigating risks for clients and nodes.
Step 4: Task Execution by Processor and Training Nodes
The system distributes the TTS task into parallel subtasks across processor nodes and training nodes. Each node handles a specific phase, such as the ones explained in the How It Works TTS section of this documentation.
Step 5: Validation of Outputs
Validator nodes assess the accuracy of subtasks using methods like speech-to-text (STT) for content verification, voice embedding matching for identity validation, and automated audio quality metrics.
Validation follows a consensus mechanism, where a majority vote among validators determines the task's success
Where:
Step 6: Reward and Penalty Distribution
Once the validation is complete, rewards and penalties are distributed based on the performance of each node. Nodes that completed their tasks correctly are rewarded, and those that failed are penalized.
Where:
If the validators determine that a node has not properly completed its subtask, the task will be terminated, and the smart contract will be notified. Scores will be adjusted and the majority of the cost will be refunded to the client.
BaseReward and BasePenalty amounts are subject to changes based on network needs.