Just like the title says. Just need some code that will pull in an audio file based on the state the user is based in.
If they are in Arizona, the Arizona file gets pulled in.
Coding for speed would obviously be preferable.
More than willing to pay for a good fix to this problem 
This one should be pretty simple to do, actually!
The geolocation script that STM user peanut posted over here already does most of what you need.
Just replace each case statement with some HTML for the audio player you want to use.
For example, if you were using Audio.js:
switch($countrycode) {
case 'US':
echo '<audio src="/mp3/juicyUS.mp3" preload="auto" />'
exit;
case 'CA':
echo '<audio src="/mp3/juicyCA.mp3" preload="auto" />'
exit;
The code Caurmen posted does the job just fine.
Hey Caurmen thanks for pointing me to that script!
So basically I would just replace "countrycode" with "regioncode" and set up the state's associated code below, right?
In Peanut's original script, you'd need to replace the call to "geoip_country_code_by_addr" with "geoip_region_by_addr" and change the variable output to $regioncode:
$regioncodecode = geoip_region_by_addr($gi, $_SERVER['REMOTE_ADDR']);
Yeah, that's what I figured, and finally got the region database. Man, they seem a little odd in giving it out, made me jump over some hurdles. Script is working great now though 
Thanks much!!!