|
| 1 | +{ |
| 2 | + "@context": [ |
| 3 | + "https://w3id.org/ro/crate/1.1/context" |
| 4 | + ], |
| 5 | + "@graph": [ |
| 6 | + { |
| 7 | + "@type": "CreativeWork", |
| 8 | + "@id": "ro-crate-metadata.json", |
| 9 | + "conformsTo": { |
| 10 | + "@id": "https://w3id.org/ro/crate/1.1" |
| 11 | + }, |
| 12 | + "about": { |
| 13 | + "@id": "./" |
| 14 | + } |
| 15 | + }, |
| 16 | + { |
| 17 | + "@id": "./", |
| 18 | + "@type": [ |
| 19 | + "Dataset", |
| 20 | + "Service", |
| 21 | + "SoftwareApplication" |
| 22 | + ], |
| 23 | + "datePublished": "2026-02-13", |
| 24 | + "URL": "https://github.com/grycap/oscar-hub/tree/main/crates/kokoro-tts", |
| 25 | + "name": "Kokoro TTS Service", |
| 26 | + "description": "The Kokoro TTS service is a speech synthesis solution that transforms text into multilingual audio optimized for CPU architectures (AMD/ARM). ", |
| 27 | + "license": { |
| 28 | + "@id": "https://www.apache.org/licenses/LICENSE-2.0" |
| 29 | + }, |
| 30 | + "applicationCategory": "OSCAR Service", |
| 31 | + "memoryRequirements": "3 GiB", |
| 32 | + "processorRequirements": [ |
| 33 | + "2 vCPU", |
| 34 | + "0 GPU" |
| 35 | + ], |
| 36 | + "serviceType":"asynchronous", |
| 37 | + "isBasedOn": [ |
| 38 | + { |
| 39 | + "@id": "https://huggingface.co/hexgrad/Kokoro-82M" |
| 40 | + } |
| 41 | + ], |
| 42 | + "author": { |
| 43 | + "@id": "https://orcid.org/0000-0002-7335-3849" |
| 44 | + }, |
| 45 | + "subjectOf": [ |
| 46 | + { |
| 47 | + "@id": "#acceptance-test-async" |
| 48 | + } |
| 49 | + ], |
| 50 | + "hasPart": [ |
| 51 | + { |
| 52 | + "@id": "fdl.yml" |
| 53 | + }, |
| 54 | + { |
| 55 | + "@id": "script.sh" |
| 56 | + }, |
| 57 | + { |
| 58 | + "@id": "icon.png" |
| 59 | + }, |
| 60 | + { |
| 61 | + "@id": "input.json" |
| 62 | + }, |
| 63 | + { |
| 64 | + "@id": "#expected-audio" |
| 65 | + } |
| 66 | + ] |
| 67 | + }, |
| 68 | + { |
| 69 | + "@id": "fdl.yml", |
| 70 | + "@type": [ |
| 71 | + "File", |
| 72 | + "SoftwareSourceCode" |
| 73 | + ], |
| 74 | + "name": "OSCAR Service Definition", |
| 75 | + "url": "https://raw.githubusercontent.com/grycap/oscar-hub/refs/heads/main/crates/kokoro-tts/fdl.yml", |
| 76 | + "encodingFormat": "text/yaml" |
| 77 | + }, |
| 78 | + { |
| 79 | + "@id": "script.sh", |
| 80 | + "@type": [ |
| 81 | + "File", |
| 82 | + "SoftwareSourceCode" |
| 83 | + ], |
| 84 | + "name": "OSCAR Service Script", |
| 85 | + "url": "https://raw.githubusercontent.com/grycap/oscar-hub/refs/heads/main/crates/kokoro-tts/script.sh", |
| 86 | + "encodingFormat": "text/x-shellscript" |
| 87 | + }, |
| 88 | + { |
| 89 | + "@id": "icon.png", |
| 90 | + "@type": [ |
| 91 | + "File", |
| 92 | + "ImageObject" |
| 93 | + ], |
| 94 | + "name": "OSCAR Service Icon", |
| 95 | + "url": "https://raw.githubusercontent.com/grycap/oscar-hub/refs/heads/main/crates/kokoro-tts/icon.png", |
| 96 | + "encodingFormat": "image/png" |
| 97 | + }, |
| 98 | + { |
| 99 | + "@id": "input.json", |
| 100 | + "@type": [ |
| 101 | + "File" |
| 102 | + ], |
| 103 | + "name": "Sample configuration file", |
| 104 | + "description": "Replace with a representative .json file containing the message to be processed and its configuration to run the kokoro-tts model.", |
| 105 | + "url": "https://raw.githubusercontent.com/grycap/oscar-hub/refs/heads/main/crates/kokoro-tts/input.json", |
| 106 | + "encodingFormat": "text/json" |
| 107 | + }, |
| 108 | + { |
| 109 | + "@id": "#acceptance-test-async", |
| 110 | + "@type": "HowTo", |
| 111 | + "name": "Asynchronous Kokoro-tts acceptance test", |
| 112 | + "description": "Upload the sample file, wait for the audio file to be created, and then download the file in the specified format.", |
| 113 | + "tool": [ |
| 114 | + { |
| 115 | + "@id": "#tool-oscar-cli" |
| 116 | + } |
| 117 | + ], |
| 118 | + "supply": [ |
| 119 | + { |
| 120 | + "@id": "#supply-sample-json" |
| 121 | + } |
| 122 | + ], |
| 123 | + "step": [ |
| 124 | + { |
| 125 | + "@id": "#step-async-put" |
| 126 | + }, |
| 127 | + { |
| 128 | + "@id": "#step-async-wait" |
| 129 | + }, |
| 130 | + { |
| 131 | + "@id": "#step-async-get" |
| 132 | + } |
| 133 | + ] |
| 134 | + }, |
| 135 | + { |
| 136 | + "@id": "#tool-oscar-cli", |
| 137 | + "@type": "HowToTool", |
| 138 | + "name": "OSCAR CLI", |
| 139 | + "item": { |
| 140 | + "@id": "#oscar-cli" |
| 141 | + } |
| 142 | + }, |
| 143 | + { |
| 144 | + "@id": "#supply-sample-json", |
| 145 | + "@type": "HowToSupply", |
| 146 | + "name": "Sample json file", |
| 147 | + "item": { |
| 148 | + "@id": "input.json" |
| 149 | + } |
| 150 | + }, |
| 151 | + { |
| 152 | + "@id": "#expected-audio", |
| 153 | + "@type": [ |
| 154 | + "File" |
| 155 | + ], |
| 156 | + "name": "Expected audio output", |
| 157 | + "description": "Audio file produced by the service that contains the message with the specified characteristics.", |
| 158 | + "encodingFormat": "audio/wav" |
| 159 | + }, |
| 160 | + { |
| 161 | + "@id": "#step-async-put", |
| 162 | + "@type": "HowToStep", |
| 163 | + "position": 1, |
| 164 | + "text": "Upload the sample configuration file to the service's storage.", |
| 165 | + "potentialAction": { |
| 166 | + "@id": "#action-async-put" |
| 167 | + } |
| 168 | + }, |
| 169 | + { |
| 170 | + "@id": "#step-async-wait", |
| 171 | + "@type": "HowToStep", |
| 172 | + "position": 2, |
| 173 | + "text": "Wait for the audio output according to specifications to occur", |
| 174 | + "timeRequired": "PT60S" |
| 175 | + }, |
| 176 | + { |
| 177 | + "@id": "#step-async-get", |
| 178 | + "@type": "HowToStep", |
| 179 | + "position": 3, |
| 180 | + "text": "Download the latest output file and confirm that it is in the expected format.", |
| 181 | + "potentialAction": { |
| 182 | + "@id": "#action-async-get" |
| 183 | + } |
| 184 | + }, |
| 185 | + { |
| 186 | + "@id": "#action-async-put", |
| 187 | + "@type": "TransferAction", |
| 188 | + "name": "service put-file", |
| 189 | + "object": { |
| 190 | + "@id": "input.json" |
| 191 | + }, |
| 192 | + "target": { |
| 193 | + "@id": "#entry-async-put" |
| 194 | + }, |
| 195 | + "additionalProperty": [ |
| 196 | + { |
| 197 | + "@id": "#command-template-async-put" |
| 198 | + } |
| 199 | + ] |
| 200 | + }, |
| 201 | + { |
| 202 | + "@id": "#entry-async-put", |
| 203 | + "@type": "EntryPoint", |
| 204 | + "actionApplication": { |
| 205 | + "@id": "#oscar-cli" |
| 206 | + } |
| 207 | + }, |
| 208 | + { |
| 209 | + "@id": "#command-template-async-put", |
| 210 | + "@type": "PropertyValue", |
| 211 | + "propertyID": "commandTemplate", |
| 212 | + "value": "oscar-cli service put-file kokoro-tts {source}" |
| 213 | + }, |
| 214 | + { |
| 215 | + "@id": "#action-async-get", |
| 216 | + "@type": "TransferAction", |
| 217 | + "name": "service get-file", |
| 218 | + "target": { |
| 219 | + "@id": "#entry-async-get" |
| 220 | + }, |
| 221 | + "result": { |
| 222 | + "@id": "#expected-json" |
| 223 | + }, |
| 224 | + "additionalProperty": [ |
| 225 | + { |
| 226 | + "@id": "#command-template-async-get" |
| 227 | + } |
| 228 | + ] |
| 229 | + }, |
| 230 | + { |
| 231 | + "@id": "#entry-async-get", |
| 232 | + "@type": "EntryPoint", |
| 233 | + "actionApplication": { |
| 234 | + "@id": "#oscar-cli" |
| 235 | + } |
| 236 | + }, |
| 237 | + { |
| 238 | + "@id": "#command-template-async-get", |
| 239 | + "@type": "PropertyValue", |
| 240 | + "propertyID": "commandTemplate", |
| 241 | + "value": "oscar-cli service get-file kokoro-tts --download-latest-into {destination}" |
| 242 | + }, |
| 243 | + { |
| 244 | + "@id": "#oscar-cli", |
| 245 | + "@type": "SoftwareApplication", |
| 246 | + "name": "OSCAR CLI", |
| 247 | + "url": "https://github.com/grycap/oscar-cli" |
| 248 | + }, |
| 249 | + { |
| 250 | + "@id": "https://orcid.org/0000-0002-7335-3849", |
| 251 | + "@type": "Person", |
| 252 | + "affiliation": { |
| 253 | + "@id": "UPV" |
| 254 | + }, |
| 255 | + "name": "Vicente Rodriguez" |
| 256 | + }, |
| 257 | + { |
| 258 | + "@id": "https://www.apache.org/licenses/LICENSE-2.0", |
| 259 | + "@type": "CreativeWork", |
| 260 | + "name": "Apache License 2.0", |
| 261 | + "identifier": "SPDX:Apache-2.0" |
| 262 | + }, |
| 263 | + { |
| 264 | + "@id": "https://huggingface.co/hexgrad/Kokoro-82M", |
| 265 | + "@type": "SoftwareApplication", |
| 266 | + "name": "Kokoro-82M", |
| 267 | + "description": "Kokoro is an open-weight TTS model with 82 million parameters." |
| 268 | + }, |
| 269 | + { |
| 270 | + "@id": "UPV", |
| 271 | + "@type": "Organization", |
| 272 | + "name": "Universitat Politècnica de València", |
| 273 | + "url": "https://www.upv.es" |
| 274 | + } |
| 275 | + ] |
| 276 | +} |
0 commit comments