Jump to content
The simFlight Network Forums

Soundman

Members
  • Posts

    5
  • Joined

  • Last visited

  • Days Won

    1

Soundman last won the day on April 3 2015

Soundman had the most liked content!

About Soundman

  • Birthday 06/07/1964

Profile Information

  • Gender
    Male
  • Location
    Pasadena, CA
  • Interests
    Sound recording, editing, and design. Tiki Bars

Soundman's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. I've tried the link today but it seems to be broken. "Not Found The requested URL was not found on this server."
  2. I have made a small LUA script that plays a First Officer announcement to your passengers. It has a choice of 4 voices. 2 male, 2 female. In American English. The greeting consists of a welcome with the appropriate time of day. (morning, afternoon, evening) And an indication of how the departure will go. Smooth Bumpy Delayed because of bad weather. There are installation instructions and voice files with the lua scripts the 28meg package can be downloaded free here: www.flightsimvoices.com Not working any longer Please email me for more info. Please let me know of any problems. Special thanks to Pete Dowson for his help and the FSUIPC program. Thanks
  3. Yes, I did add that to the post by mistake. And, the sleep command works very well when precisely timed to the .wav file playing. Bing! the light just went on thanks. I'll work on that. And a real newbie question. Can "ref" be named anything I choose? Meaning... ref = sound.play(path to my wave) can be voice1 = sound.path(path to my wave) Thanks again.
  4. Hello Pete, First off thanks for a great program. Secondly, you've enspired me to actually code my own little projects with FSUIPC. (I am a audio mixer/recordist/musican with no programming experience whatsoever). I've created a little lua file to play .wavs of a captain's initial announcement. Starting with "Good Morning" or "Good Afternoon" or "Evening depending on the time of the local hour, and then give information about the departure. Clear, Rain, Snow, windy...etc. please see my example: ====================================================== Lua File --Captain Announcement time = ipc.readUB(0x0238) -- TIME OF DAY LOCAL HOUR (0-23) weather = ipc.readUB(0x04CC) -- WEATHER 0=No rain 1=Rain 2= Snow if time <= 10 then sound.play("f:\\fsv_crew\\captain\\morning.wav") end if (time >= 11) and (time <= 15) then sound.play("f:\\fsv_crew\\captain\\afternoon.wav") end if time >= 16 then sound.play("f:\\fsv_crew\\captain\\evening.wav") end ipc.sleep(3000) == Each file is 3 seconds long if (weather == 0) then sound.play("f:\\fsv_crew\\captain\\clearsky.wav") end if (weather == 1) then sound.play("f:\\fsv_crew\\captain\\rain.wav") end if (weather == 2) then sound.play("f:\\fsv_crew\\captain\\snow.wav") end ================================================== And it works great! Except for using the ipc.sleep command to link the two files. I've tried using the sound.query( ) command every which way with no results I thought I could code it like this: ================================================= if (sound.query("f:\\fsv_crew\\captain\\morning.wav")) and (sound.query("f:\\fsv_crew\\captain\\afternoon.wav")) and (sound.query("f:\\fsv_crew\\captain\\evening.wav")) == false then if (weather == 0) then sound.play("f:\\fsv_crew\\captain\\clearsky.wav") end if (weather == 1) then sound.play("f:\\fsv_crew\\captain\\rain.wav") end if (weather == 2) then sound.play("f:\\fsv_crew\\captain\\snow.wav") end end ================================================== But, it just plays the first file (time) . Am I thinking of the sound.query() command correctly? I hope you can enlighten me as to what I am doing wrong. If it's not possible, I am still content with using the sleep command. I just have to be diligent about the length of the files. Thanks in advance. Jim
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.