avva: (Default)
[personal profile] avva
Знающих язык Перл наверняка не удивит эта проблема:
I changed my journal name from "sinner" to "0"

It will let me signin, but I can't post or modify anything.
says "no username entered"

Строка "0" с точки зрения Перла - это false, т.е. проверка if("0") не проходит.

Re: Deja Vu

Date: 2003-11-15 09:58 am (UTC)
From: [identity profile] msh.livejournal.com
Описания форматов и исходники кодеков есть, например, здесь

http://rice.ecs.soton.ac.uk/jason/speech_codecs/standards/index.html

just can't resist...

Date: 2003-11-15 01:25 pm (UTC)
From: [identity profile] silpol.livejournal.com
главное - это не забыть что есть GSM и GSM a-la Microsoft ;)

если пойти вглубь указанного выше линка, то линк о GSM кодеке ведет на "классическую" страницу об одной из имплементаций GSM, являющейся стандартом де-факто имплементации кодека вне телефонов (http://kbs.cs.tu-berlin.de/~jutta/toast.html), сделанную Jutta Degener (http://kbs.cs.tu-berlin.de/~jutta/me/whois.html). два важных отрывка оттуда

The .wav GSM format


There is a .wav chunk format #49 that encodes GSM 06.10 frames. Newer Windows versions support it natively. It's a completely parallel version to ours, written from the same ETSI pseudocode, but ending up with imcompatible framing and different code order in the bytes.
After fretting over intellectual property rights for a few months, Microsoft has now registered the encoding inside the WAV chunk as a MIME type, particularly for use in the context of VPIM (Voice Profile for Interenet Mail)'s spinoff IVM, a way of sending Voice Messages as MIME documents.

The Microsoft ietf-draft is avalable as draft-ema-vpim-msgsm-00.txt from IETF draft repositories.

Long before that, Jeff Chilton figured out the format with trial-and-error when he needed to write compressed wave files for his shortwave radio application (see below).

The patchlevel 9 release of GSM integrates Jeff's ``unofficial'' patch 8 in slightly different form, breaking his sample source code along the way. The updated version has its GSM_OPT_WAV_FMT changed to GSM_OPT_WAV49, and (thanks to Dima Barsky) a more portable way of looking at fputs's result. If you couldn't get it to work earlier on a SysV-ish environment, try again.


Microsoft NT and Windows 95 (beta)


Microsoft's Audio Compression Manager includes a GSM 6.10 CODEC (in addition to those for ADPCM, IMA ADPCM, the DSP Group's TrueSpeech(TM), and a PCM converter). The Windows 95 beta added CCITT G.711 u- and A-law CODECs to the collection. Microsoft's GSM 06.10 CODEC is not compatible with toast's frame format - they use 65-byte-frames (2 x 32 1/2) rather than rounding to 33, and they number the bits in their bytes from the other end. (Well done, guys.)

January 2026

S M T W T F S
    1 2 3
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 4th, 2026 02:15 pm
Powered by Dreamwidth Studios