Answers.Body: <p>OK, here is one approach. </p>
  
  <ol>
  <li><p>Acquire a data set of 'clean' audio samples without barking dogs and an data set of barking dogs sounds.</p></li>
  <li><p>Generate a training set by mixing random selections of clean audio with a random selections of barking dog noises at various volume levels. This is your input data. Your output data is the clean audio before you added the barking.</p></li>
  <li><p>Find a suitable neural network. This might be a good starting point: <a href="https://github.com/andabi/music-source-separation" rel="nofollow noreferrer">https://github.com/andabi/music-source-separation</a></p></li>
  <li><p>Train the network.</p></li>
  <li><p>Apply the network to a load of the clean+bark mixes and check the result by ear. If the results are not good enough, go to 3 to tweak the network. If the results are still poor go to 2 and generate more training data, perhaps adding some distortions or other effects the the barking. Happy with the result? Go to 6.</p></li>
  <li><p>Publish the results online for the betterment of humanity. (And/or write the network to  a miniature GPU board (such as the NVIDIA Jetson <a href="https://developer.nvidia.com/buy-jetson" rel="nofollow noreferrer">https://developer.nvidia.com/buy-jetson</a>) and work out how to wire that up to the decoded audio in your telly before it heads to the speakers), then blog about it because that would be a great project.</p></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-24T12:07:38.397Z
Answers.Text: Thanks for the roadmap.  I'm sure if I record audio while I'm watching TV with my dog in the room for a few hours I can capture enough training data.
Answers.UserDisplayName: AlanD
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-22T04:06:43.173Z
Answers.Text: You'll need more than a few hours of barks to train a network to distinguish between barks and humans making short exclamations or car tire screeches, assuming the frequent elimination of false positives from the audio is not desirable.
Answers.UserDisplayName: Douglas Daseeco
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-20T14:14:39.973Z
Answers.Text: The initial part of this plan 1,2 is similar to how audio systems can be trained to respond to activation phrases (e.g. "OK Google, "  or "Alexa, ")
Answers.UserDisplayName: Neil Slater
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-22T20:25:49.113Z
Answers.LastActivityDate: 2018-12-22T20:25:49.113Z
Answers.UserDisplayName: DrMcCleod
Body: <p>My dog goes bonkers every time the sound of a barking dog is heard on a television program.  I never noticed this before but literally every movie or show with an outdoors setting eventually includes the sound of a barking dog.</p>
  <p>Is it possible to develop a real-time filter that blocks or masks these sounds?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-21T12:49:06.243Z
Comments.Text: I mean, it's certainly possible in theory. But is that your question?  Do you have the skills needed to do data science, collect data sets, cleanse them, write the final program, and ultimately design and build a physical circuit and rewire your television to include it as a pre-speaker filter? No one here is going to do that on your behalf, if that's what you're trying to ask.
Comments.UserDisplayName: Dan Bron
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-22T01:29:58.757Z
Comments.Text: It's not a bad idea actually. This is a common problem. As this appears to be a wholly theoretical question, lets see if it garners some answers about AI approaches to this type of problem.
Comments.UserDisplayName: DukeZhou
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-24T12:04:12.077Z
Comments.Text: While I've studied data science enough to attempt model development, the other aspects are beyond my scope.  Maybe some student looking for a senior project will be inspired to take on this world changing challenge.
Comments.UserDisplayName: AlanD
Tags: <audio-processing>
Title: Can I filter barking sounds on the television?
UserDisplayName: AlanD
ThreadText: # Can I filter barking sounds on the television?
  
  (Asked by: username_0 on 2018-12-21)
  
  My dog goes bonkers every time the sound of a barking dog is heard on a television program. I never noticed this before but literally every movie or show with an outdoors setting eventually includes the sound of a barking dog.
  
  Is it possible to develop a real-time filter that blocks or masks these sounds?
  
  **Tags:** audio-processing
  > **Comments:**
  > **username_1**: I mean, it's certainly possible in theory. But is that your question?  Do you have the skills needed to do data science, collect data sets, cleanse them, write the final program, and ultimately design and build a physical circuit and rewire your television to include it as a pre-speaker filter? No one here is going to do that on your behalf, if that's what you're trying to ask.  
  > **username_2**: It's not a bad idea actually. This is a common problem. As this appears to be a wholly theoretical question, lets see if it garners some answers about AI approaches to this type of problem.  
  > **username_0**: While I've studied data science enough to attempt model development, the other aspects are beyond my scope.  Maybe some student looking for a senior project will be inspired to take on this world changing challenge.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2018-12-22. Score: 1
  
  OK, here is one approach.
  
  1. Acquire a data set of 'clean' audio samples without barking dogs and an data set of barking dogs sounds.
  2. Generate a training set by mixing random selections of clean audio with a random selections of barking dog noises at various volume levels. This is your input data. Your output data is the clean audio before you added the barking.
  3. Find a suitable neural network. This might be a good starting point: <https://github.com/andabi/music-source-separation>
  4. Train the network.
  5. Apply the network to a load of the clean+bark mixes and check the result by ear. If the results are not good enough, go to 3 to tweak the network. If the results are still poor go to 2 and generate more training data, perhaps adding some distortions or other effects the the barking. Happy with the result? Go to 6.
  6. Publish the results online for the betterment of humanity. (And/or write the network to a miniature GPU board (such as the NVIDIA Jetson <https://developer.nvidia.com/buy-jetson>) and work out how to wire that up to the decoded audio in your telly before it heads to the speakers), then blog about it because that would be a great project.
  
  > **Comments:**
  > **username_0**: Thanks for the roadmap.  I'm sure if I record audio while I'm watching TV with my dog in the room for a few hours I can capture enough training data.  
  > **username_4**: You'll need more than a few hours of barks to train a network to distinguish between barks and humans making short exclamations or car tire screeches, assuming the frequent elimination of false positives from the audio is not desirable.  
  > **username_5**: The initial part of this plan 1,2 is similar to how audio systems can be trained to respond to activation phrases (e.g. "OK Google, "  or "Alexa, ")  
  
  ---
  
  