Описание ошибки =============== 1. Необходим любой файл с расширением wav (например, из вложения). 2. # fs_encode file.wav output.gsm 3. Прослушать файл output.gsm (например, с помощью vlc; пример см. во вложении). Фактический результат: В файле содержится только шум. Продолжительность короче исходного. Ожидаемый результат: В файле то же содержимое, что и в исходном file.wav. Дополнительно ============= Информация о файлах (ffprobe): > [wav @ 0x55eed5c04300] Discarding ID3 tags because more suitable tags were found. > Input #0, wav, from 'file.wav': > Metadata: > title : WAV Test File > album : Example Files > artist : Online-Convert.com > Duration: 00:00:36.04, bitrate: 1411 kb/s > Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s > [gsm @ 0x5610f3b77300] Estimating duration from bitrate, this may be inaccurate > Input #0, gsm, from 'output.gsm': > Duration: 00:00:07.44, start: 0.000000, bitrate: 13 kb/s > Stream #0:0: Audio: gsm, 8000 Hz, mono, s16, 13 kb/s Актуальная часть вывода # fs_encode -v file.wav output.gsm: > Opening file file.wav > 2023-08-25 13:06:37.285872 100.00% [DEBUG] switch_core_file.c:444 File file.wav sample rate 44100 doesn't match requested rate 8000 > 2023-08-25 13:06:37.285893 100.00% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur. > Opening file output.gsm > Frame size is 160 > 2023-08-25 13:06:37.424628 100.00% [WARNING] switch_core_codec.c:932 Codec is not initialized! Воспроизводимость ================= [p10] server-10.1-x86-64 freeswitch-daemon-1.10.9-alt1.x86_64 vlc-3.0.18-alt3.x86_64 [sisyphus] server-10.1-x86-64 freeswitch-daemon-1.10.10-alt1.x86_64 vlc-3.0.18-alt3.x86_64 ffprobe-4.4.4-alt1.x86_64
Created attachment 14206 [details] Выходной файл Исходный файл слишком большой для загрузки в Bugzilla, его можно загрузить с помощью: # wget https://example-files.online-convert.com/audio/wav/example.wav -O file.wav
Не воспроизводится на версиях: freeswitch-daemon-1.11.1-alt1.x86_64 vlc-3.0.18-alt3.x86_64 ffprobe-4.4.8-alt1.x86_64
Поправка: Воспроизводится на версиях: freeswitch-daemon-1.11.1-alt1.x86_64 vlc-3.0.18-alt3.x86_64 ffprobe-4.4.8-alt1.x86_64
freeswitch-1:1.11.2-alt1 -> sisyphus: Thu Aug 13 2026 Anton Farygin <rider@altlinux> 1:1.11.2-alt1 - 1.11.1 -> 1.11.2 - fs_encode: treat only the part after the last dot as the file extension (Closes: 56577) - fs_encode: only use the output extension as a codec when it names a real codec; formats encoded by the file module (wav, flac, ogg, ...) now work as output, wav -> wav included (Closes: 47345, 47348) - fs_encode: do not encode twice when the output extension is claimed by mod_sndfile (gsm, ...): the file was gsm-compressed by the codec and then again by libsndfile, producing short noise-only files (Closes: 47344) - fs_tts: fixed argument handling: the text argument was ignored unless an extra argument followed it, and -i FILE was unreachable so the tool hung on stdin instead of reading the file; extra arguments are rejected now (Closes: 54889) - switch_xml: do not abort on assert in switch_xml_open_cfg() when the main configuration could not be loaded; fixes fs_tts/fs_encode/ tone2wav crash under a regular user (Closes: 47334) - fs_tts: load mod_dptools (tts:// provider) instead of mod_ssml removed upstream, and load the module of the selected TTS engine (mod_flite by default), so text-to-speech actually works (Closes: 47335) - mod_imagick: bound the lazy loading thread by the real page count; fixes endless re-reading of GIF frames with lazy=1 ending in an OOM kill (Closes: 47382) - mod_xml_rpc: build against the bundled xmlrpc-c as upstream intends instead of mixing bundled private headers with the system library; fixes the HTTP server failing to start and every /api, /webapi, /portal request answered with 404, which broke freeswitch-webui (Closes: 47399, 54894) - added a native systemd unit ordered after network-online.target; the unit generated from the SysV script started freeswitch before the network was up, so after a reboot sofia bound to the wrong address and clients could not connect (Closes: 47333) - freeswitch-vlc: require vlc-mini: without the VLC core plugins libvlc_new() returns NULL and mod_vlc fails with "cannot initialise VLC handle" on every call (Closes: 47403) - freeswitch-lang-he: package mod_say_he.so; the subpackage shipped the Hebrew prompts without the module that speaks them - packaged gentls_cert, the TLS certificate helper for sofia and verto - dropped mod_say_hu, mod_say_it and mod_say_nl from the build: they were built and thrown away, upstream ships no lang data for them - do not install the switch_eavesdrop unit test into the bin dir, the unnamespaced /usr/include/test headers, and the Flash-era htdocs leftovers - run the network-free part of tests/unit at build time (switch_utils, switch_hash, switch_event, switch_xml, switch_console); the binaries were already being built and thrown away