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

142
Views
Local Audio in HTML

How can I make my html page represent local audio without uploading.
I have code like but the audio is not playing it just represent audio style:

<audio controls preload="none" id="audio"> 
    <source id="first-audio" src="/home/linux/Desktop/Mega/upload/Audio Files/file.wav" type="audio/wav">
 </audio>

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

<html>
    <head>
        <title> Audio Play </title>
    </head>
    <body>
         <audio controls autoplay>
            <source src="https://www.computerhope.com/jargon/m/example.mp3">
        </audio> 
    </body>
</html>

Try this, remember to place your audio file in same directory that your html file or use relative path :

 <html>
        <head>
            <title> Audio Play </title>
        </head>
        <body>
             <audio controls autoplay>
                <source src="frere_jacques.mp3" type="audio/mpeg">
            </audio> 
        </body>
    </html>

more infos, to help you : www.w3schools

about 4 years ago · Juan Pablo Isaza Report

0

You can try by typing the src attribute inside the audio tag.

<audio src="/audio/audio.mp3" controls></audio>
about 4 years ago · Juan Pablo Isaza 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!