Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone.
I'm just a newbie in coding and I would like to ask for some of your help on my little project. I'm currently trying to make a simple adjustable 99900 milliseconds countdown timer that is trigger by any sound (strong enough) it pick-up from an android phone's microphone and plays a SCARY_SOUND.mp3 located inside the phone after the timer reaches zero.
This project will be running on my android phone..

NEEDED HELP IN THE FOLLOWING:
1.) 99900 milliseconds countdown timer
2.) way to access and used an android phone's microphone
3.) retrieve audio files in phone's memory


I really appreciate any help I can get...
Thank you everyone...

What I have tried:

HTML
<html>
<head>

<style>

 div {
	width:auto;
	height:auto;
	-webkit-align-self: center; /* Safari 7.0+ */
	align-self: center;	}
	
 .Add10000, .Add1000, .Add100, 
 .Subtract10000, .Subtract1000, .Subtract100 {
	background-color: blue;
	color: white;
	font-size: 89.43px;}

</style>	

<script>

</script>
</head>

<body>

<div>

        <table table;" cellspacing="0" cellpadding="0" border="1">
            <tbody>
			<tr>
                <td><button class="Add10000">+</button></td>
                <td><button class="Add1000">+</button></td>
                <td><button class="Add100">+</button></td>
				<td class="Addonemilli"></td>
            </tr>
            <tr>
                <td><div id="tenthousand" style="font-size: 271px;">0</div></td>
                <td><div id="onethousand" style="font-size: 271px;">0</div></td>
                <td><div id="onehundred" style="font-size: 271px;">0</div></td>
                <td><div id="tensones" style="font-size: 89.43px;">00</div></td>
				
            </tr>
            <tr>
                <td><button class="Subtract10000">-</button></td>
                <td><button class="Subtract1000">-</button></td>
                <td><button class="Subtract100">-</button></td>
				<td class="subtractonemili"></td>
            </tr>
            
        </tbody></table>
		
		<table>
        <tbody><tr>
		<tr>
                <td colspan="1" style="padding-right:3px;" align="right">
                    <button id="Start" style="font-size: 48px;">Start</button>
					<button id="Reset" style="font-size: 48px;">Reset</button>
					<button id="Stop" style="font-size: 48px;">Sound Test</button>
                </td>
            </tr>
			</tbody></table>
		
		</div>

</body>
		
</html>
Posted
Updated 26-Jul-19 21:37pm
Comments
Dave Kreskowiak 27-Jul-19 9:22am    
So you want to play a sound almost 100 seconds after you hear a sound loud enough to start the timer?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900