Sponsored Content
Operating Systems Solaris Solaris 11 no sound despite finding hardware Post 302970339 by wisecracker on Tuesday 5th of April 2016 04:30:51 PM
Old 04-05-2016
Here goes:-

(Important note: SOX is now becoming part of many Linux installs inside '/usr/bin/'.)
Code:
#!/bin/sh
# af_test.sh
# Note my sox version is 14.4.2 so '~/sox-14.4.2/' will have to be changed to '/your/full/path/to/sox-xx.x.x/'.
dd if=/dev/urandom of=/tmp/noise.raw bs=1024 count=64
~/sox-14.4.2/sox -q -b 8 -r 8000 -v 1 -e unsigned-integer /tmp/noise.raw -d trim 0 00:02 > /tmp/sox.log 2>&1

-q = run without animation and verbose mode.
-b = bit depth, 8 bit depth here.
-r = sample rate 8000Hz.
-v = volume level, 1 is the normal maximum.
-e = encoding, unsigned-integer here.
-d = playback mode when after the filename being played.
trim 0 00:02 = play the 8 second file for 2 seconds.

-c = number of channels, not rquired here.

There is much much more!
The sox manual is extensive and what it can't do is not worth doing.

Last edited by wisecracker; 04-06-2016 at 01:09 PM.. Reason: Correct 'dd' count size...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

finding hardware settings

Is there a unix command to find out what type of graphics card you have installed and to see other hardware settings? Any help would be appreciated. I'm using Solaris 7. :D Thanks, NH (7 Replies)
Discussion started by: nattie_h
7 Replies

2. Solaris

Sound control in Solaris 2.9

Hi, Gurus ! I need to find out how I can control the sound in UNIX. I have got a pair of USB speakers which do not have any volume controls. Is there any tool in Solaris 2.9 to control the volume ? Thanks D :eek: (0 Replies)
Discussion started by: Deicide5997
0 Replies

3. UNIX for Advanced & Expert Users

Migrating Solaris 9 to different hardware

Hi, I am new to this forum and hope someone can help. Does anyone know how to restore a Solaris 9 backup tape from server A to a completely different server B hardware. Both boxes are sun 64bit. Your help is much appreciated. Thank you Jan. (5 Replies)
Discussion started by: snerta
5 Replies

4. Solaris

Solaris Hardware and ROHS

I'm trying to determine the End of Service Life for some of our Solaris servers, and I'm not sure if our servers are ROHS compliant. Is there a command to determine if the server is ROHS? If not, is there somewhere on the chasis where I can find this information? (2 Replies)
Discussion started by: dangral
2 Replies

5. Solaris

regarding sun solaris hardware

hi :), i am new to this forum and i am in need of some help. one of my friend i having a Sun Ultra 2 UPA/Sbus (UltraSPARC-II 296Mhz) 640 MB ram. i am not sure if that configuration will be helpful to try out some sysadmin commands. this machine has a 21-inch monster monitor, which i think... (5 Replies)
Discussion started by: sudhiroracle
5 Replies

6. UNIX for Advanced & Expert Users

solaris 9 hardware mulfunction

Hello, Im working on solaris 9 and I need to write script which monitoring several hardware componenets for any failures such as memory , Disks , power supply etc. I using prtdiag to extract this info. What should I check in the output for : Memory (Is the block of "Memory Module Groups"... (1 Reply)
Discussion started by: Alalush
1 Replies

7. UNIX for Dummies Questions & Answers

finding hardware config - HP-UX

HP-UX B.11.23 U ia64 model: HP RX7640/4 What commands can I issue to find out quantity/type of memory and CPUs? I know what I get from Glance but want to know if there are OS commands to get same or additional information. Thanks. Lisa (4 Replies)
Discussion started by: LisaS
4 Replies

8. Solaris

Sound not working on Solaris 10 running on Sun Virtual Box

Hello Friends, I have installed Solaris 10 on on Sun Virtual Box. I am able to browse internet on solaris 10 thru firefox, however I am not getting sound, there is cross on the tray icon of sound. Please help with this !! Regards, Sahil (3 Replies)
Discussion started by: sahilsardana
3 Replies

9. Hardware

No sound device in Solaris 11 running in Parallels (MacBook Pro)

I'm new to Solaris. I was able to installed Solaris 11 running GNOME. I tried to detect sound/audio but the message given that "No volume control GStreamer plugins and/or devices found". There is no dev/audio but there are audio drivers such as gstreamer installed when I checked using Solaris... (0 Replies)
Discussion started by: Abang Annuar
0 Replies

10. UNIX for Advanced & Expert Users

Finding the hardware model name remotely

First, forgive me if this is a stupid questions that I should have asked in the non-expert forum. It seems like a hard questions to me. Is there a way to find the hardware model name from the command line on UNIX machines in general? I want to find out what kind of machines are running at a... (5 Replies)
Discussion started by: Pug
5 Replies
SoXI(1) 							  Sound eXchange							   SoXI(1)

NAME
SoXI - Sound eXchange Information, display sound file metadata SYNOPSIS
soxi [-V[level]] [-T] [-t|-r|-c|-s|-d|-D|-b|-B|-e|-a] infile1 ... DESCRIPTION
Displays information from the header of a given audio file or files. Supported audio file types are listed and described in soxformat(7). Note however, that soxi is intended for use only with audio files with a self-describing header. By default, as much information as is available is shown. An option may be given to select just a single piece of information (perhaps for use in a script or batch-file). OPTIONS
-V Set verbosity. See sox(1) for details. -T Used with multiple files; changes the behaviour of -s, -d and -D to display the total across all given files. Note that when used with -s with files with different sampling rates, this is of questionable value. -t Show detected file-type. -r Show sample-rate. -c Show number of channels. -s Show number of samples (0 if unavailable). -d Show duration in hours, minutes and seconds (0 if unavailable). Equivalent to number of samples divided by the sample-rate. -D Show duration in seconds (0 if unavailable). -b Show number of bits per sample. -B Show the bitrate averaged over the whole file (0 if unavailable). -e Show the name of the audio encoding. -a Show file comments (annotations) if available. BUGS
Please report any bugs found in this version of SoX to the mailing list (sox-users@lists.sourceforge.net). SEE ALSO
sox(1), soxformat(7), libsox(3) The SoX web site at http://sox.sourceforge.net LICENSE
Copyright 2008-9 by Chris Bagwell and SoX Contributors. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. AUTHORS
Chris Bagwell (cbagwell@users.sourceforge.net). Other authors and contributors are listed in the ChangeLog file that is distributed with the source code. soxi February 19, 2011 SoXI(1)
All times are GMT -4. The time now is 02:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy