Announcement

Collapse
No announcement yet.

Airplay Speak - HS2 Beta Testing

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

  • #76
    new version 1.2.0.5 attached to first post in this thread. The following functions have been added to be able to enable/disable and set volume level of a speaker from a script.

    Code:
    public void SetSpeakerVolume(string name, int volume)
    public void SetSpeakerEnabled(string name, bool enabled)
    name is the name of the Airplay Speaker as it appears in the config page, and the second parameter of SetSpeakerVolume must be an integer in [-30;0] range.

    example of vb script using these functions:
    Code:
    Sub Main(parm as object)
    hs.Plugin("AirplaySpeak").SetSpeakerVolume("Airport Express 1", -12)
    hs.Plugin("AirplaySpeak").SetSpeakerEnabled("Airport Express 1", true)
    End Sub

    Comment


    • #77
      Airplay speak with Raspberry Pi

      Hello,
      I was wondering if anyone is having the same issues I am.

      I have a Apple TV and a Raspberry Pi running.
      When Airplay Speak runs and it sends a message to both devices the Apple TV sounds fine, but the Raspberry Pi starts to speak but cuts out after 4-5 seconds on the longer messages.

      Here is the log of when it starts up.

      6/30/2013 8:21:00 AM AirplaySpeak DEBUG txtvers = '1'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG vn = '3'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG pw = 'false'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG sr = '44100'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG ss = '16'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG ch = '2'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG cn = '0,1'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG et = '0,1'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG ek = '1'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG sv = 'false'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG sm = 'false'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG tp = 'UDP'
      6/30/2013 8:21:00 AM AirplaySpeak DEBUG TXT Records =
      6/30/2013 8:21:00 AM AirplaySpeak INFO Resolved Service: E941AB0A40B3 - RaspberryPi - 10.10.10.169 - 5002



      Here is a log of when it speaks.



      6/30/2013 8:37:55 AM AirplaySpeak DEBUG TEARDOWN rtsp://10.10.10.120/4239514686 RTSP/1.0CSeq: 6Session: DEADBEEFUser-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: D9D0248EC1883284
      6/30/2013 8:37:55 AM AirplaySpeak DEBUG Audio-Jack-Status, connected; type=analog
      6/30/2013 8:37:55 AM AirplaySpeak DEBUG CSeq, 5
      6/30/2013 8:37:55 AM AirplaySpeak DEBUG FLUSH rtsp://10.10.10.120/4239514686 RTSP/1.0CSeq: 5Session: DEADBEEFRTP-Info: seq=4666;rtptime=220071User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: D9D0248EC1883284
      6/30/2013 8:37:55 AM AirplaySpeak DEBUG 16 Speaker.OnCheckStatusTimerEvent() gets the lock
      6/30/2013 8:37:55 AM AirplaySpeak DEBUG 16 Speaker.OnCheckStatusTimerEvent()
      6/30/2013 8:37:54 AM AirplaySpeak DEBUG 22 Speaker.OnQueueEnd() gets the lock
      6/30/2013 8:37:54 AM AirplaySpeak DEBUG 22 Speaker.OnQueueEnd()
      6/30/2013 8:37:54 AM AirplaySpeak DEBUG 45 Speaker.OnCheckStatusTimerEvent() gets the lock
      6/30/2013 8:37:54 AM AirplaySpeak DEBUG 45 Speaker.OnCheckStatusTimerEvent()
      6/30/2013 8:37:53 AM AirplaySpeak DEBUG 16 Speaker.OnCheckStatusTimerEvent() gets the lock
      6/30/2013 8:37:53 AM AirplaySpeak DEBUG 16 Speaker.OnCheckStatusTimerEvent()


      6/30/2013 8:37:52 AM AirplaySpeak DEBUG 45 Speaker.OnCheckStatusTimerEvent() gets the lock
      6/30/2013 8:37:52 AM AirplaySpeak DEBUG 45 Speaker.OnCheckStatusTimerEvent()
      6/30/2013 8:37:51 AM AirplaySpeak DEBUG 16 Speaker.OnCheckStatusTimerEvent() gets the lock
      6/30/2013 8:37:51 AM AirplaySpeak DEBUG 16 Speaker.OnCheckStatusTimerEvent()
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG 61 Speaker.AfterSend()
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG 61 Speaker.SendSample() gets lock
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG 61 Speaker.SendSample()
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG 61 Speaker.BeforeSend()
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG Audio-Jack-Status, connected; type=analog
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG CSeq, 4
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG SET_PARAMETER rtsp://10.10.10.120/4239514686 RTSP/1.0CSeq: 4Session: DEADBEEFContent-Type: text/parametersContent-Length: 20User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: D9D0248EC1883284volume: -15.000000
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG Audio-Jack-Status, connected; type=analog
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG CSeq, 3
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG RECORD rtsp://10.10.10.120/4239514686 RTSP/1.0CSeq: 3Session: DEADBEEFRange: npt=0-RTP-Info: seq=4097;rtptime=19783User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: D9D0248EC1883284
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG Audio-Jack-Status, connected; type=analog
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG Session, DEADBEEF
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG CSeq, 2
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG Transport, RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=3072;timing_port=3071;server_port =6000
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG SETUP rtsp://10.10.10.120/4239514686 RTSP/1.0CSeq: 2Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=3072;timing_port=3071User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: D9D0248EC1883284
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG Apple-Response, vtG5Dwkf2QIkCPr+nTccugCwkR0iCEzV88YmVKHVK59oyK/0GNyA2w64ejQh2bel0kXYL0iMedxcH+CTr0EiILCC+GHzrVJpB9kAfrJWqWA cynzdQrujGoc/4+9Glhet5JzuQUl8t6PLiAB7JuhNk/VjMvqQ29fuoMORBnxbvwXwwl8xS3Qg8vA7ie5u+5vmaVBMu1GWPT2e+wuf9H hIjiBFXZAqTVu9pEUSCeHVeuFYVPUx8sZsWJWB4/DE8lnviz24BvNzAHlVRFcxOXoOBRPgVi3WLKYHKHTePIvCK/ycTARBD38lk93BHz8ssApcWuvATgdf6E0BeSuG47trFw
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG Audio-Jack-Status, connected; type=analog
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG CSeq, 1
      6/30/2013 8:37:50 AM AirplaySpeak DEBUG ANNOUNCE rtsp://10.10.10.120/4239514686 RTSP/1.0CSeq: 1Content-Type: application/sdpContent-Length: 570User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)Client-Instance: D9D0248EC1883284Apple-Challenge: 5BsmhDG2fn6zLVW5HzZzTwv=0o=iTunes 4239514686 0 IN IP4 10.10.10.120s=iTunesc=IN IP4 10.10.10.169t=0 0m=audio 0 RTP/AVP 96a=rtpmap:96 AppleLosslessa=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100a=rsaaeskeynF8uK9HPaodRVCMzk0rIbKMZ8Tw+T4GWVPplv4M8OhJYmei9epedV6/kAkeLsAlayuTGQqjZgdM7ZJn/4c/dS/qjCCCBlLCsdJRX0CwDijoPw12vUxDp4lTO7vzN6hoTZ8QveUMWvpxxa+V+sw bNaueLM9Au1eJtokclQmd7YLqRddPUvl1PVmxiCsBBrAkro5gyMvp9wMSmZs kcYN2xzVzFWwGeCjuZrvyddT3UPAuEk4xqyC8u3HaUZb+o5QduAGzTrn3ahc BxZGtpS/SZ6kIrGzGYamEyCij5CU89LmyP8L7ZmTJ7+8BwognjuJ925gP7WP8wPDUoV2 j2J0ZLwa=aesiv:fv9HVkMCs91TNUo4VQP5YQ



      6/30/2013 8:37:49 AM AirplaySpeak DEBUG 61 Speaker.Reset() gets the lock
      6/30/2013 8:37:49 AM AirplaySpeak DEBUG 61 Speaker.Reset()
      6/30/2013 8:37:49 AM AirplaySpeak INFO (RaspberryPi): You have opened a window, I'm now turning off the air conditioner to conserve energy.


      Anyone have any ideas?

      Comment


      • #78
        This is a known problem with some Airplay speakers.

        in the config page, set the after delay to a few seconds for the raspberryPi, it should fix the issue.

        Comment


        • #79
          Originally posted by spud View Post
          This is a known problem with some Airplay speakers.

          in the config page, set the after delay to a few seconds for the raspberryPi, it should fix the issue.
          Thanks that did the trick!

          Comment


          • #80
            Wont resolve 3rd Source

            I have been testing your plug-in with an appletv and a PC running air server. Today i received an Airport Express which I was hoping to dedicate to HS and connect to my WHA system. Unfortunately, the plugin will not recognize it. It works fine with ITunes and my iPhone on but not with HS. Suggestions?


            7/8/2013 5:01:54 PM Plug-In Finished initializing plug-in AirplaySpeak
            7/8/2013 5:01:55 PM AirplaySpeak INFO Found Service: 91FBA62BD2A4@ACER-PC2
            7/8/2013 5:01:55 PM AirplaySpeak INFO Resolved Service: 91FBA62BD2A4 - ACER-PC2 - 10.0.1.106 - 49152
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG TXT Records =
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG et = '0,3,5'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG vv = '1'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG cn = '1'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG da = 'true'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG tp = 'UDP'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG pw = 'false'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG sf = '0x4'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG am = 'AppleTV3,1'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG txtvers = '1'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG vn = '65537'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG md = '0,1,2'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG vs = '150.33'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG sv = 'false'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG ch = '2'


            7/8/2013 5:01:55 PM AirplaySpeak DEBUG sr = '44100'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG rhd = '4.1.3'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG ss = '16'
            7/8/2013 5:01:55 PM AirplaySpeak INFO Found Service: 28CFDA1F7814@Apple TV
            7/8/2013 5:01:55 PM AirplaySpeak INFO Resolved Service: 28CFDA1F7814 - Apple TV - 10.0.1.148 - 49153
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG TXT Records =
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG txtvers = '1'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG ch = '2'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG cn = '0,1,2,3'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG da = 'true'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG et = '0,3,5'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG md = '0,1,2'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG pw = 'false'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG sv = 'false'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG sr = '44100'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG ss = '16'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG tp = 'UDP'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG vn = '65537'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG vs = '130.14'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG am = 'AppleTV2,1'
            7/8/2013 5:01:55 PM AirplaySpeak DEBUG sf = '0x4'
            7/8/2013 5:01:55 PM AirplaySpeak INFO Found Service: 001E526AF4D9@6af4d9

            Comment


            • #81
              is there any other Airplay Speak log line after this one:
              7/8/2013 5:01:55 PM AirplaySpeak INFO Found Service: 001E526AF4D9@6af4d9
              is it your Airport Express? i.e is it named 6af4d9?

              what is the model of your AE and its firmware?
              how is it configured? Do you use ipv6?

              Comment


              • #82
                I figured it out. Turns out the AE needed to be hardwired as it appeared to conflict with my existing WiFi network. I turned off the wifi on the AE and all is working good.

                Comment


                • #83
                  new version 1.2.0.8 attached to first post in this thread which adds support for password protected devices.

                  Comment

                  Working...
                  X