# README-recordings
# File last changed: Feb 23, 2021

Modem voice files

  DisconnectedNotInService.pvf - master recording used to create the default .rmd file

  DisconnectedNotInService.rmd - modem raw data file
      
The default: 8-bit unsigned PCM raw modem file

HOW TO create a raw modem file

  Install the sox and mgetty-voice packages.

  You can create any recording file format that "sox" recognizes.
      See: http://linux.die.net/man/7/soxformat

  Convert an .mp3 file to .wav. The standard sox distribution can now
      convert it.

  You can use a recording file from https://thisisarecording.com/
  For example, to download a "Bell System circuits busy":

  * Open your browser and go to https://thisisarecording.com/.  Select a
    "Bell System curcuits busy" recording and play it.  then right click
    on the player and select "Save Audio as".

    + You can also select "Copy Audio Location" and paste it on a lynx or
      mplayer command line to download the file.

      Use lynx to download the .mp3 recording:
      lynx -dump https://www.thisisarecording.com/q/circuits-bell-f1.mp3 > 
          circuits-bell-f1.mp3

      Or use the mplayer, to download the .mp3 recording:
      mplayer https://www.thisisarecording.com/q/circuits-bell-f1.mp3 \
          -dumpstream -dumpfile circuits-bell-f1.mp3

    + Convert the .mp3 recording to .wav
      sox circuits-bell-f1.mp3 -t wav -c 1 -r 44100 -b 16 circuits-bell-f1.wav

    + Delete the .mp3 recording if not keeping it.
      rm circuits-bell-f1.mp3

  You can create a custom mp3 file at http://www.fromtexttospeech.com/ with
  a few language and gender choices.  If you use the site to make your own,
  know that a hard CR/LF in the text box causes a pause after a line, so do
  the hard CR/LF after each sentence.

  You can create a .wav file to make an .rmd file for your modem.

  If you created a circuits-bell-f1.wav file, Here are the steps to
  create a circuits-bell-f1.rmd file:

    * sox circuits-bell-f1.wav -t pvf -c 1 -r 8000 -b 8 circuits-bell-f1.pvf
    * pvftormd V253modem 8 circuits-bell-f1.pvf circuits-bell-f1.rmd

  Here are the steps to create a circuits-bell-f1.rmd file from the mp3 file:

    * sox circuits-bell-f1.mp3 -t pvf -c 1 -r 8000 -b 8 circuits-bell-f1.pvf
    * pvftormd V253modem 8 circuits-bell-f1.pvf circuits-bell-f1.rmd

  pvftormd is dependent on the modem, use pvftormd -L for the modem list

  Different modem chipsets can use different parameters. 
  You may wish to check the https://en.wikipedia.org/wiki/Network_Caller_ID
  to see if someone has already documented the steps for your modem.
