Debian :: Redirect Output Sound To Input (mic Or Line-in)
Jan 22, 2011
I want to compare the quality of a sound file (voice) before and after its transmission via a softphone (sjphone in my case). For this, i need to redirect the sound played, to the sound input (microphone or line-in).
I have a TV card connected to my Dish box, and I would like to use it on my computer. The tv card works fine, and the audio is connected to my line in. The audio card receives the audio signal, and I can set the volume and record it without any problem, but I can't get it to redirect to an output in order to hear the sound. I have been battling with this issue since a kernel update back when 11.2 was about to come out. Back then, the alsa mixer had an option called audio loop-back, which did the trick. Since I know I ca record the audio and play it back without any problem, is there an application that can do this automatically and simultaneously?
I want to redirect the output of a command to a file, but not at the end of the file, but after a line. Do you know how can I do it?
Something like:
cat file_a | grep some_text >> resulting_file
# in this file I need to place the output from grep, but not at the bottom of resulting_file, like it would normally happen, but after line .. 3 , for example
I need to create a single line of output from multiple and variable lines of input in a Linux bash shell script.
My input file looks like this:
Where there may be any number of umsecondaryphonenumber lines; if there is not a umsecondaryphonenumber line for a telephonenumber, I don't want to write any output.
So, the output file should look like:
The script I have so far is:
My question is - how do print each of the elements of an array in one record - i.e. what do I put in place of howdoiprintarray?
For some reason my soundcard is recording every playback sound. This become apparent when I was trying to make a Skype call and the other people couldn't hear me. I checked my sound preferences and noted that the input was recording what they say (they could hear an echo). Also if I played back anything it would redirect to them. This has never happened to me and I've made a lot of calls in the past.
I tested with Audacity and it records fine, but when I play back the recording, it redirects to the input channel so it's not a problem with Skype. (my soundcard is a VIA VT1708B 8-Ch). Somewhere I read that the output of aplay -l is useful.
I used to be able to use Skype without a problem. I must have played with something as it now doesn't allow me to both use a microphone and external speakers at the same time.I go into sound setting and I am able to test the microphone (works) but then the speakers don't show, if I reverse the tests then the opposite happens.
I cant seem to install Ubuntu 9.10 at all. At 15% I get the following Error Message Input/output Error During Read On/dev/sda then I get the creation of swapspace in partition #5 of SCSI1(0,0,0) (SDA) Failed. Ive tried 6 times already. Im getting no sound at all. How can I change the screen resolution. 800 x 600 is the highest it will go. Im getting really discouraged with Ubuntu. Alot of people seem to have the same problems I am having but there is no solutions. I've checked the MEMTEST and passed, done a disk check and passed.
I have been searching for an answer through most of the recent posts about sound issues but have not been able to find a solution. I am currently unable to capture sound from the "Line" input on my sound card. I do have sound and is working correctly for all applications and I do have P/A disabled (I'm not a huge fan of the sound quality with P/A enabled). I have checked and re-checked many settings but to no avail have not been able to capture sound. I'm sure I may be missing something or have not done something in order for this to work. I was using openSUSE 11.4 on a different pc and had no problems, unfortunately this is a different pc with a different sound card which is on-board so I am not entirely familiar with it yet.
It is a C-media CMI9880 which shows up as a Intel HDA (ICH6) and appears to be configured correctly.
Instead of doing pkill pulse, is there any way to redirect the sound output (Flash Player) from <browser user> to <current gnome user>, so I don't have to pkill the sound daemon of the current user ?
I am trying to grep multiple numbers from file, grep does have the -f option for that.
Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with
Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?
When I installed my 64 bit system of Ubuntu 10.04 the sound worked very well and I were very happy. The problem started however when I installed Skype which uses pulseaudio. As soon as I start skype (or any other application that uses pulse, HoN for example) the applications sound output or input does not work at all. If I have pulseaudio started in some way, applications that I suppose do not use it like spotify or flash player stops to produce sounds. And when I type "pulseaudio" in the terminal it gives me this:
I've been using grsync to backup my home directory to an external drive (connected via USB), but lately I've been getting errors very early in the process and I was hoping someone might be able to help me fix them (or at least understand what I'm doing wrong).
Here's the output of a window titled "rsync: stopped" and in red "completed with errors!" rsync: write failed on "/media/LaCie/myhomefolder/.cache/champlain/osm-mapnik/6/12/23.png": Input/output error (5) kyconway/.cache/champlain/osm-mapnik/6/12/26.png rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.8] rsync: connection unexpectedly closed (486 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.8] Rsync process exit status: 12
I'm a new user of Linux and just recently installed Debian 8 on my computer, an Emachines W3118. My problem is that the audio went out a couple of days ago and I don't know WHY it went out, no audio, and HOW to get it back on. I tried several command line methods that didn't work, probably because they didn't completely relate to the problem with me being a Linux beginner and all. When I manually turn the knob on the speaker up, I can hear noise to where the speakers sound like they're physically operational, but with no output or input.
I installed Lucid. I used to have Ubuntu 9.10 and to connect my iPod to my laptop's speakers. There was an option in 9.10 in the Sound Options to change the Mic Input into a Line Input. But now unfortunately I can't find it in Lucid have only 2 audio ports in the laptop: Headphone port, Mic port.
So I have this cable going from a cassette players "phones" jack to my computers input jack but there is no sound coming from my speakers though it did with Windows XP.
I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect the input from one to the other.And then when I type in /dev/pts/29 the characters I type should show up in /dev/pts/130. However what ends up happening is that every other character I type gets redirected.
I am trying to write a script that takes an input file ($FileName) and an intermediate file ($FileName.info) and removes lines from $FileName if the value in $2 of $FileName.info is <75.
I can't figure out how to feed only one line of the .info file to the if statement at a time so that it will perceive it as an integer instead of a list.
The error I am getting now is ./script.sh: line 6: [: : integer expression expected
I was just using the mic and watched it stop working suddenly. I was in the middle of a skype test call when the graphical mixer level died down to zero in the middle of the call. When the test call was played back, the first part sounded fine then the sound got lower until it became inaudible. Since then I can't get any sound from my mic in skype.
Also, the audio input level graphically shown in Sound Preferences shows no fluctuations in sound as it used to before. The input device is enabled. I tried using Sound Recorder to record some sound clips and that worked fine. So the mic is working but Sound Preferences and Skype seem to have the mic level really low. I'm not sure what else to think considering it was working perfectly a few minutes ago. I've tried restarting, but that didn't fix it either.
HDMI outputs video but not sound from my Acer Aspire 5738 laptop.I have tried both SMPlayer and VLC setting both audio outputs to HDMI.Those media players have always worked for me using other Linux distros.Is there another media player that I should be using?If it's important;lspci lists;Audio as ATI and Video as ATI Mobility Radeon HD 4500
My Problem: The output redirection auf a script works if the script is called in the terminal but not when its called via crontab.
My Situation: I have 2 scripts: ~/backup1 Code: echo backup a to c rsync -a -v --progress --delete --exclude=.Trash-1000 /path/a/ /path/c/backup/ echo backup b to c
I am again struggling to make a script work, but hey, it is fun, I am learning new things. I discovered the set -x option which was, for me, like the second coming. Still, what I am not able to do is redirect ALL output to a (log) file, including what is produced by the -x setting. Let's assume a very simple script: Code: #!/bin/bash set -x source="/home/atelier/Bureau/" ls -la $source and I am running it as . test.sh >> /var/log/test.rmcb.log
The result of ls goes inded into the log file, but the rest still shows on the console where I am running the script: Code: ++ source=/home/atelier/Bureau/ ++ ls --color=auto -la /home/atelier/Bureau/ Is there a way to redirect EVERYTHING to the log file ?
if I'm posting to the wrong forum. Be so kind to tell me where to better ask this question, as I'm really not finding the right words to google for.So, I have a shell application (fdb) which is a Flash debugger. I want to run it using bash script, capture it's output and pass it the commands (it can read from STDIN). The reason I want to do so is that Flash Builder (the IDE for Flash development) is plain stupid when it comes to compilation, and it won't allow me to compile any file in the project... so, I found out that I can make Eclipse to run an external tool. This external tool is my *.sh file whichches the compiler, and then it launches the debugger.The Eclipse console can display the compilation results, or errors. When I run the debugger it can even pass the input from Eclipse console to the debugger, however, the output from the debugger isn't shown.
I'd like to redirect the output to a file and to the console. I know about tee but the issue is that it waits until the first process finishes.e.gecho "hello world" | tee test.txtfirst calls echo and then tee.Is there a way to redirect "on the fly" ?
I was trying to redirect the output of two variables to different columns of a .csv file in MS excel like this,
Code: echo "$a $b" > abc.csv But I am getting both $a and $b in the same column, is there anything I can use instead of to move the value of $b to the next column? Or is there a good different approach to do it?
I'm doing some commands on a remote server (using ssh to log on to the remote server, did a ssh key swap), how do i redirect the output of a command back to the local server ?the person who helps me out is my HERO i'm really stuck on this and it would bring me a lot further if i get this to work
I would really like to capture the output of scp and my file's progress. Scp updates the transfer rate every 1 second, and I will like to save the transfer rate at every update. So for example, if the file transfer takes 30 seconds, I would like 30 reports of the transfer rate.
The output looks like: Code: file.dat 1% 3664KB 938.5KB/s 05:48
Whenever I try a simple redirect like: Code: scp file.dat 192.168.1.100:~/ &> output ... it does not save the rate at every update, it only shows the final rate.
If I try using typescript by starting "script" ... it's the same deal.