Announcement

Collapse
No announcement yet.

Can't play wave or m4a files....

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't play wave or m4a files....

    I have airplay speak working for TTS, but when I put the path to any wav, m4a, or mp3, I get nothing. Is this really supported?

  • #2
    HS2 or HS3 ?
    Yes it is supported, at least I'm sure it was working with HS2
    Set log level to debug, and please post the log lines you got when you try to play a file.

    Comment


    • #3
      HS2. I've tried dozens of files of all 3 formats and nothing.

      Comment


      • #4
        Logs for one of the m4a files:

        1/17/2014 10:06:02 AM AirplaySpeak INFO (Garage,Back Porch,Master Bedroom,Side Room / Office): c:\Beep_Beep_Beep.m4a
        1/17/2014 10:06:02 AM AirplaySpeak ERROR Object reference not set to an instance of an object.
        1/17/2014 10:06:03 AM ISY Insteon EVNT: ISY Heartbeat message.
        1/17/2014 10:06:03 AM ISY Insteon EVNT: Event Queue is now empty.

        Interestingly, the sound is played out through the pc speaker, but not the airplay targets.

        Comment


        • #5
          Logs files for one of the wav files. More stuff here:

          1/17/2014 10:09:11 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:11 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:11 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:11 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:11 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:11 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:11 AM AirplaySpeak DEBUG 47 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:11 AM AirplaySpeak DEBUG 47 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:12 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:12 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:12 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:12 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:12 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:12 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:12 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:12 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 44 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak INFO (Garage,Back Porch,Master Bedroom,Side Room / Office): c:\beep.wav
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.Reset()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.Reset() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.Reset()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.Reset() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.Reset()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.Reset() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.Reset()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.Reset() gets the lock
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.BeforeSend()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.BeforeSend()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.BeforeSend()
          1/17/2014 10:09:13 AM AirplaySpeak DEBUG 74 Speaker.BeforeSend()
          1/17/2014 10:09:13 AM AirplaySpeak ERROR Index was outside the bounds of the array.
          1/17/2014 10:09:14 AM AirplaySpeak DEBUG 47 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:14 AM AirplaySpeak DEBUG 47 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:14 AM AirplaySpeak DEBUG 47 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:14 AM AirplaySpeak DEBUG 47 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:14 AM AirplaySpeak DEBUG 47 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:14 AM AirplaySpeak DEBUG 47 Speaker.OnCheckStatusTimerEvent() gets the lock
          1/17/2014 10:09:14 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent()
          1/17/2014 10:09:14 AM AirplaySpeak DEBUG 23 Speaker.OnCheckStatusTimerEvent() gets the lock

          Comment


          • #6
            actually .m4a are not supported, only .wav, mp3 or aiff.

            could you attach that beep.wav file, so that I can try.

            Comment


            • #7
              Sure.

              Also, perhaps this should be fixed in the user guide:
              Step 4: setup some event action of type "Speak". If you leave the host field blank, the speech will be sent to all enabled AirPlay devices as well as all HS Speaker Clients. You can target specifics AirPlay devices (or specific speaker clients) by setting the name of this device exactly as it appears in the config page (see second screenshot below)
              Instead of some text to be spoken, you can set a .wav or a .m4a file to be played.

              Comment


              • #8
                Here's the beep file. Also, any plain old mp3 music file doesn't work either.
                Attached Files

                Comment


                • #9
                  there is a problem with this particular file. I will investigate and fix the plugin but here is a quick workaround, set the following lines in AirplaySpeak.ini

                  Code:
                  [AUDIO]
                  force_resample_witch_acm=true
                  then restart HS

                  Also in the config page you may have to set the After delay setting for your speaker to 2secs or more because some speakers don't like very small stream.

                  Comment


                  • #10
                    I fixed the problem in version 1.2.0.10, so forgot about the workaround above and download the new version from: http://board.homeseer.com/showthread...85#post1058085

                    Note: you may still need to add an "after delay" to be able to play very short files on some speakers

                    Also, ideally, for better performance to avoid any conversion or resampling by the plugin, your audio files (wav, mp3, aiff) should be:
                    - stereo
                    - sample rate = 44100Hz
                    - 16 Bits per sample

                    Comment


                    • #11
                      Awsome. Thanks. I'll install it right now.

                      Comment

                      Working...
                      X