Manually delay audio in chrome or system-wide (Mac OSX) - macos

I got new Bluetooth speakers and inherently they seem to have a delay of about 0.5 to 1s when watching streams or videos online. I already mailed to the manufacturer and I was told that this has to do with how they make use of the Bluetooth protocol (pair of speakers in master-slave mode for stero sound) and how the respective video player is doing encoding/decoding. iTunes for instance seems to be just fine while vlc and all streams in browsers have this delay.
So I was wondering whether there is a way to manually delay audio either just in the browser (chrome) or even system-wide on MacOSX?! It would be great if the possible solution was transient since I do not want the delay when I am not using these speakers.
Additionally it would be just perfect if somebody even knew how to this on iOS although I don't think that it is possible there, that's why I did not include iOS in the title.

Related

Certain websites in chrome keeping computer awake by activating an audio stream, even if no sound is playing. Is there a way to disable it?

I was wondering why my computer randomly stays awake and found out that certain websites will trigger an audio stream in windows, despite no sound being played from said site.
For example, if you go to this page from quizlet.com, and then type powercfg -requests, for me it will say
DISPLAY:
None.
SYSTEM:
[DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_0298&SUBSYS_102806E4&REV_1001\4&a3ff4e8&0&0001)
An audio stream is currently in use.
AWAYMODE:
None.
EXECUTION:
None.
PERFBOOST:
None.
ACTIVELOCKSCREEN:
None
I'm assuming because they've got a lot of sound producing actions on the page. Is there a way to make the OS ignore chrome's requests to stay awake?

Discover chromecast devices

I did everything verbatim on this sample (How do I discover a Chromecast device using Android?).
The chromecast icon turns to white on indicating there are devices available.
When I pressed it, the application unfortunately stops.
What can be going wrong? The only step so far I want to achieve is list all available devices.
Cheers!

Playing audio while dictation is active in Mavericks

In Mavericks Apple introduced "Enhanced Dictation" -- an ability to transcribe speech into text locally, in off-line mode. Unfortunately, they also introduced another feature -- while the dictation is active, all the sound is muted. A bit of digging around turned out that the "muted" sound is still being played. For example, Audio Hijack captures the sound as it should be played and saves it into a file. I'm making an application that requires sound output during dictation (I'm assuming that the user is wearing headphones). It does not look like they change the volume settings: querying the master volume level on the headphone device shows that it is the same before and during dictation. The Sound volume indicator in the menu bar does not change either. As far as the rest of the system is concerned the sound is playing.
I'm a CoreAudio noob. I can do basic things with recording and playback, but not much more. Is it possible to get the "muted" sound back? Is there a switch, a flag, a feature in CoreAudio that would enable the sound from my application to reach the headphones with the dictation active?
For people who would stumble on this page: I did find an answer eventually. You can disable audio ducking by setting the following user defaults:
defaults write com.apple.SpeechRecognitionCore AllowAudioDucking -bool NO
defaults write com.apple.speech.recognition.AppleSpeechRecognition.prefs DictationIMAllowAudioDucking -bool NO
See the detailed explanation on Youtube.

How would I keep a ChromeCast Chrome tab alive?

I have a status page (a la Google Analytics) that I want to stream to my screen via ChromeCast. The problem I'm running into is that after 10 or 15 minutes, my ChromeCast cuts off the connection and goes back to the ChromeCast screen rather than continue casting from my status board. I already tried having the page refresh automatically, but apparently that's not good enough.
Ideally I just want to do this via a Chrome tab without having to create an entire application, but I'm willing to do so if necessary. I don't see anything in the docs to suggest that this is possible, though.
Ideas?
Is the screen you are casting a static one in which no UI change happens or there are elements that change on the UI?
I'm not sure what the cause is; but I think casting a tab here might be overkill, and not using it might fix your issue.
Casting a tab basically encodes what's visible into a video stream and streams it over your network to the Chromecast. This uses significant resources encoding the video on your PC, network transfer of a video stream, decoding on the Chromecast.
If the app is already web-based, it would be much better to get the Chromecast to just render it natively (this avoids encoding anything to a video stream, and removes the need for your PC to be on completely).
I'm still waiting for my Chromecast to be whitelisted so I can't test it; but I suspect it would be trivial to be able to get the Chromecast to display a "status page" natively with just a little HTML and JS on your PC to "launch" it, and a tiny wrapper for the receiver.

Redirect microphone input to headphone output (soft playthru)

If I use my in-ear headphones with my macbook pro it takes me a few minutes until they are fitting perfectly (due to the foam bits on the headphones) :)
My idea is to use internal macbook pro microphone to be able talk to somebody coming to my desk without having to remove the headphones every time. So kind of an 'intercom' thing which can be enabled by hitting a hotkey.
First thought was to use applescript which could be easily used for pausing iTunes, but I could not find information about how I could forward the microphone output to my headphones.
Next try was to check Xcode for writing a Cocoa App. By starting with an example provided by Apple I think it would be achievable for me to extend it to fit my needs.
So my question is:
Do you have a better idea/approach to solve my problem?

Resources