Changeset 35509
- Timestamp:
- 2021-09-28T16:03:10+13:00 (3 years ago)
- Location:
- main/trunk/model-interfaces-dev/atea/korero-maori-asr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/README.md
r35503 r35509 39 39 npm run lint 40 40 ``` 41 ### Notes 41 42 43 ##### Secret File 44 45 When in production mode, an audio file with the name `akl_mi_pk_0002_offline.wav` can be uploaded to force the interface to return the default offline response that is normally reserved for debugging. Useful for demonstration purposes on a live site when the Tuhituhi API is down. -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/js/TranscribeModule.js
r35495 r35509 123 123 * Performs a query to transcribe the given audio files. 124 124 * 125 * @param {File List | File[]} files The files to upload.125 * @param {File[]} files The files to upload. 126 126 * @returns {Promise<TranscriptionModel[]>} The transcribed audio file. 127 127 * @throws {TranscriptionError} When the transcription request fails to complete. 128 128 */ 129 129 async transcribeFiles(files) { 130 if (process.env.NODE_ENV !== "production" ) {130 if (process.env.NODE_ENV !== "production" || files.some(file => file.name === "akl_mi_pk_0002_offline.wav")) { 131 131 return await this.transcribeFilesTest(files); 132 132 } -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/vue.config.js
r35496 r35509 6 6 module.exports = { 7 7 // publicPath: "interfaces/atea/korero-maori-asr/dist", 8 filenameHashing: false, // Allows us to easily setup direct links in ourasr.xsl. You may want to change this for production in order to help with caching8 filenameHashing: false, // Allows us to easily setup direct links to the bundles in korero-maori-asr.xsl. You may want to change this for production in order to help with caching 9 9 10 10 chainWebpack: config => {
Note:
See TracChangeset
for help on using the changeset viewer.