From owner-freebsd-questions@FreeBSD.ORG Wed Apr 3 15:51:25 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 49EDA961 for ; Wed, 3 Apr 2013 15:51:25 +0000 (UTC) (envelope-from carlj@peak.org) Received: from mail-da0-x22c.google.com (mail-da0-x22c.google.com [IPv6:2607:f8b0:400e:c00::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 1F92BB49 for ; Wed, 3 Apr 2013 15:51:25 +0000 (UTC) Received: by mail-da0-f44.google.com with SMTP id z20so721795dae.31 for ; Wed, 03 Apr 2013 08:51:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-authentication-warning:from:to:subject:references :mail-followup-to:date:in-reply-to:message-id:user-agent :mime-version:content-type:x-gm-message-state; bh=WXZHN7T6nPap2D6HvYzAlJt+tvIE9AQkpGh/idL/btQ=; b=czRmLkKCI2sGPj8MgstJFDVtYYpEf2qaNfOMQsTx+H7vL+Xxtz0wGSbhC6eJHG+bNF CGy8//+3nRpbZnX0hGQk2XB20taw6Eu2KMZNjU/YOWV2FqHLfuj1VfCjqBG5A/R/kJqT ePUu7EyVezlmDvop1jeZ/J/y3VigpDpEXQj/d7S9EHm/YKigRO4jeB6TQTwxfkGlybSI mF2NfkLo/Dp8Zy8WknOQxsLDpE6jQlHgo7n4BVEAhRuoCQL1CVOCX9tQlFLEgfjkZVmF QP+zGyLv8xdKObPm4PGakvbs870R2hhn/Z9vpGY0psAJNdAWyXJLK1dmnMM/Co0GI+MB qDSg== X-Received: by 10.68.178.194 with SMTP id da2mr3302376pbc.136.1365004284113; Wed, 03 Apr 2013 08:51:24 -0700 (PDT) Received: from bonsai.localnet ([207.55.107.62]) by mx.google.com with ESMTPS id gf1sm6447825pbb.33.2013.04.03.08.51.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Apr 2013 08:51:23 -0700 (PDT) Received: from oak.localnet (oak.localnet [192.168.193.34]) by bonsai.localnet (Postfix) with ESMTP id AB9483D17C for ; Wed, 3 Apr 2013 08:51:21 -0700 (PDT) Received: from oak.localnet (localhost.localnet [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id 683CFBFA8 for ; Wed, 3 Apr 2013 08:51:21 -0700 (PDT) Received: (from carlj@localhost) by oak.localnet (8.14.5/8.14.5/Submit) id r33FpLue000721; Wed, 3 Apr 2013 08:51:21 -0700 (PDT) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: Recipie for CPU souffle' References: <515AAE16.9030707@qeng-ho.org> <15043.1364932520@server1.tristatelogic.com> <20130402231522.71cb7352.freebsd@edvax.de> Mail-Followup-To: freebsd-questions@freebsd.org Date: Wed, 03 Apr 2013 08:51:21 -0700 In-Reply-To: <20130402231522.71cb7352.freebsd@edvax.de> (Polytropon's message of "Tue, 2 Apr 2013 23:15:22 +0200") Message-ID: <871uarwr2e.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQnx/yeWZwkLls8byYVCMSZQracyCvgKd5mCBqhxnLf/nE2K/V4gDPNx7F15E2CBai5Pyx8j X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 15:51:25 -0000 Polytropon writes: > On Tue, 02 Apr 2013 12:55:20 -0700, Ronald F. Guilmette wrote: > > No, that does not work. Read the manpage to recognize clearly > _what_ kind of input the /dev/speaker device accepts. It does > not understand WAV files. > > However, try this example (cw.sh): > > #!/bin/sh > > read -p "CW ===> " TEXT > echo ${TEXT} | morse | awk '{ > if(length($0) == 0) > printf("P4\n"); > else { > gsub(" dit", "P32L32E", $0); > gsub(" di", "P32L32E", $0); > gsub(" dah", "P32L8E", $0); > printf("%sP16\n", $0); > } > }' | dd bs=256 of=/dev/speaker > /dev/null 2>&1 > > This script doesn't require any non-OS components. You can use > it as a basis to build a program that will send you system messages > in an audible way in morse code... :-) Have you looked at the morse man page lately, specifically the -p option? :-) Just try 'morse -p sos' to test it. -- Carl Johnson carlj@peak.org