? Wav Recorder ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Another contest? You asked for it!

Wav Recorder

Submitted
Updated
Author
SamKitsune
Public Key
Y3EKE3D6
Min. Compat.
All
Version
1.1
Size
244.5 KB
Rating
17 votes
Description The SmileTool's Wav program is a good tool for recording and playing sounds, but it records up to two seconds! What if you can record and play sounds up to ten seconds, or even stop recording midway? The Wav Recorder is the tool for the job! It's a simple tool to record, save, and load sounds up to 30 seconds. Follow the onscreen prompt. UPDATE: Decrease in file size. Records up to 30 seconds. Includes Wav Player library - a library to playback your WAV files for your project. Version 1.0 has some playback bug, but otherwise, runs perfectly. Will add an easier way to play sounds from the .WAV file to other programs. Instructions The instructions for Wav Recorder are pre-built in the tool. To use Wav Player for your project, please include these lines at the beginning of the project. LOAD "PRG1:WAVPLAYER.LIB",FALSE USE 1 EXEC 1 WAVPLAY must be included in the beginning of the loop that you're running the WAV file. Otherwise, you will have an error. EX: WHILE 1 WAVPLAY WEND WAVLOAD loads and plays the WAV file. In quotes, type the file name. You can type either the simple name or the full name. EX: WAVLOAD "WAVFILE" : WAVLOAD "DAT:WAVFILE.WAV" WAVSTOP stops playing the WAV file. For reference, you can look up WAVTEST, and see how it works.
Categories
Keywords
  • wav
  • sound
  • voice
  • record
  • recorder
32 Comment(s) Mr_Mo Mr_Mo Reading I like to read books! Hobbies Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself I used this to make an english TALK command. Awesome! 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Well, I've finally fixed the beeping problem... Insert this code after line 42: FILL VOICEA,127 Ptcguy Ptcguy First Week Joined in the very first week of SmileBASIC Source Website Minecraft Is Awesome! I love Minecraft! Express Yourself Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength After I turn off option strict, this doesn't work; on its own in line 43, I get Type mismatch in 43(FILL:1) and if I put it at the end of line 42 the problem isn't resolved. So what do you mean? Or are you not using 1.1? 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Oops, I gave the wrong line. (the version of WAVPLAYER.LIB that I had was modified) It should be line 67 Ptcguy Ptcguy First Week Joined in the very first week of SmileBASIC Source Website Minecraft Is Awesome! I love Minecraft! Express Yourself Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength If I append your command to the end of line 67 after putting a space (and turning off option strict) on both the main program and the lib there is still the beep, so it seems I'm misunderstanding something. So, then, what does line 67 in which program look like? 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself IF WAVFR==LOAD_WAV[0] THEN (insert code here) WAVSETA 224,0,127,0,127,VOICEA,78,0,1 Ptcguy Ptcguy First Week Joined in the very first week of SmileBASIC Source Website Minecraft Is Awesome! I love Minecraft! Express Yourself Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Ah, thanks. Maybe SamKitsune should update the program! Heigw Heigw So would there be a way to record more than just 30 seconds? It would be nice, even though i don't use more than 30 seconds, this is good to record a few chords, then you might want to put it on a loop so you could improvise off it. I would love to have a loop for this, just a my greedy thoughts though. :D amihart amihart If you're using a sample rate of 8180 hz you can record over 2 minutes. Have an array as a buffer and every 30 seconds expand the size of the buffer and copy in a new 30 seconds of audio. If you raise the sample rate, the length you can record goes down. amihart amihart Why 30 seconds? If you're recording using at 8-bit fixed you can record at least 2 minutes worth before running out of memory. 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself because... well there is no reason really this was before people used homebrew or petit modem to transfer files, so the only way to send audio was to record it with the microphone, and the mic can only (easily) record 30 seconds Also, even though WAVs use 8 bit samples, integers in SB are 32 bits, and both recording and playback REQUIRE uncompressed (75% empty space) WAV files. amihart amihart Does that mean a 32bit WAV at the same sample rate would take up the same amount of memory as an 8bit WAV? I guess I should've specified the sample rate then, I meant WAVs recorded at 8180 Hz can be recorded up to about 2 minutes (128 seconds). Sorry, I'm pretty new to all this stuff. 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself yes, it would 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself This is cool-BEEEEEEEEEEEEEP ElzoBro ElzoBro First Day Joined on the very first day of SmileBASIC Source Website Video Games I like to play video games! Hobbies Drawing I like to draw! Hobbies Wow! This is awesome! I'm suprised this fell into obscurity! O.O raimondz raimondz First Week Joined in the very first week of SmileBASIC Source Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Its a great tool. However, I suggest to implement a way to preload wav on the app, and play them later. TheRealGamerBoy07 TheRealGamerBoy07 Great Tool! I was able to record audio for my game which I couldn't do before! Ptcguy Ptcguy First Week Joined in the very first week of SmileBASIC Source Website Minecraft Is Awesome! I love Minecraft! Express Yourself Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength It's cool it can record 30 seconds of audio. MCGamer20000 MCGamer20000 Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Minecraft Is Awesome! I love Minecraft! Express Yourself First Month Joined in the very first month of SmileBASIC Source Website Bug: Stopping playback of a WAV (noticeable in WAVTEST) can cause a high pitched beep for a second. SamKitsune SamKitsune I know about it. I'm working on a way to remedy this. I used BEEP to play sounds, but the downside that it doesn't have a direct method to stop it. "BGMSTOP -1" isn't an option, because it will stop all sounds. Let me see if I can make a dummy array and use that to stop the sound. FYI, I'm making more improvements, like using sample size to determine the length of the sound, as well as adding arguments to PLAYWAV. Maybe one day, I could really improve it to make it work like a simple audio editor. 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself I fixed it! Insert this code after line 67: FILL VOICEA,127 STORM STORM it works great! i am pleased... SamKitsune SamKitsune Thank you! KDub101010 KDub101010 This is cool. Might this be going in a direction of something like a sample player?! That would be pretty sweet! blizord blizord How do you load the wavs into your game? I'm having trouble... SamKitsune SamKitsune I'm working on a library for that. It'll be done in 1-2 days. SamKitsune SamKitsune I created an update. Go on and try it out! HaleXF11 HaleXF11 Great timing. Gonna try using this to record a wav for a game I'm working on. blizord blizord Cool. User1_ User1_ First Week Joined in the very first week of SmileBASIC Source Website Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Night Person I like the quiet night and sleep late. Express Yourself its not available.... SamKitsune SamKitsune It actually is. I checked it myself, and it works. Please try again. User1_ User1_ First Week Joined in the very first week of SmileBASIC Source Website Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Night Person I like the quiet night and sleep late. Express Yourself wrong download key...