Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
How to load a Teachable Machine Audio Model from Project Files

I'm having trouble utilizing the Teachable Machine's audio model code snippet to create an offline model. I downloaded the metadata and model json's and would like to accomplish something similar to

async function createModel() {
       const checkpointURL = 'model.json'; // model topology
       const metadataURL = 'metadata.json'; // model metadata
       const recognizer = await speechCommands.create('model.json', 'metadata.json');
       return recognizer;
   }

where you'd usually put both links to the files as arguments to the create() method. I saw a post extremely similar to my issue, but it was for the pose teachable machine model and I can't seem to find a similar load() function in the audio model's speech-commands' script that would allow me to get these files from local storage.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Found it. Just prepend file:// to the json's directories.

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!