On 06/22/2011 12:33 PM, Grygoriy Dobrovolskyy wrote:
2011/6/22 Vladimir Broz<[email protected]>:
Hi,

if you do not insist on .gsm file, you can simply convert all .gsm to .wav
format.

in the directory with .gsm files (I guess "/var/lib/asterisk/sounds/en") do:

mkdir wav
for a in *.gsm; do sox "$a" -r 8000 -s -b 16 "wav/`echo $a|sed -e
s/gsm//`wav" ; done

This should convert all files in ./ to ./wav directory using the same
encoding as used in SEMS (Signed PCM 16-bit 8k).

-Vlada

On 06/21/2011 06:17 PM, Grygoriy Dobrovolskyy wrote:

Good day, i have some files moved from asterisk with the .gsm
extension, sems has the gsm audio module loaded however he is not able
to stream me the file. I would like to use sems as a simple
announncement player. Asterisk plays that files without any problem.
What should i do to make sems play gsm encoded audio ?
Thank you.

Logs:

  [#b6927b70/6756] [update_uas_reply, trans_layer.cpp:1473] DEBUG:
update_uas_reply(t=0x82331e0)
  [#b6927b70/6756] [reset_timer, sip_trans.cpp:185] DEBUG: New timer of
type G at time=385 (repeated=0)
  [#b6927b70/6756] [reset_timer, sip_trans.cpp:185] DEBUG: New timer of
type H at time=1960 (repeated=0)
  [#b6927b70/6756] [onSessionStart, Announcement.cpp:143] DEBUG:
AnnouncementDialog::onSessionStart
  [#b6927b70/6756] [fileName2Fmt, AmAudioFile.cpp:91] ERROR:
fileName2Fmt: could not find a format with that extension: 'gsm'
  [#b6927b70/6756] [fpopen_int, AmAudioFile.cpp:178] ERROR: while
trying to determine the format of
'/var/lib/asterisk/sounds/message_queue_INFOEN.gsm'
  [#b6927b70/6756] [startSession, Announcement.cpp:159] ERROR: Couldn't
open file /var/lib/asterisk/sounds/message_queue_INFOEN.gsm.
  [#b6927b70/6756] [processEventsCatchExceptions, AmSession.cpp:424]
ERROR: AnnouncementDialog::onSessionStart: Cannot open file

  [#b6927b70/6756] [processEventsCatchExceptions, AmSession.cpp:431]
ERROR: 500 unexpected exception.
  [#b6927b70/6756] [run, AmSession.cpp:348] DEBUG: session event loop
ended, finalizing session
  [#b6927b70/6756] [finalize, AmSession.cpp:523] DEBUG: running
finalize sequence...
  [#b6927b70/6756] [destroy, AmSession.cpp:553] DEBUG: AmSession::destroy()
  [#b6927b70/6756] [stop, AmThread.cpp:148] DEBUG: Thread 3063053168
(3063053168) calling on_stop, give it a chance to clean up.
  [#b6927b70/6756] [on_stop, AmSession.cpp:537] DEBUG: AmSession::stop()
  [#b6927b70/6756] [clearAudio, AmSession.cpp:777] DEBUG: Audio cleared !!!
  [#b6927b70/6756] [stop, AmThread.cpp:163] DEBUG: Thread 3063053168
(3063053168) finished detach.
  [#b6927b70/6756] [finalize, AmSession.cpp:529] DEBUG: session is stopped.
  [#b6927b70/6756] [_start, AmThread.cpp:72] DEBUG: Thread 3063053168 is
ending.
  [#b6802b70/6757] [_start, AmThread.cpp:68] DEBUG: Thread 3061853040
is starting.
  [#b6c2ab70/6753] [run, udp_trsp.cpp:213] DEBUG: vv M [|] u recvd msg via
UDP vv
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems


Hello, thank you all for info, well sure i can convert it, but i think
it's a good idea to use the asterisk style formats which are quite
usefull, i mean .alaw .ulaw .speex .gsm .wav it is simple to see all
the formats, and also you can have all versions of sound file in
different formats, in this case we can avoid conversion. Dont you
think ?
sure!

let's wait for developers to decide if it is a bug or "limitation" that this file format is not supported. Then we can file a bug/feature request for SEMS on the bug tracker... (bugtracker.iptel.org)

Thanks!
-Vlada
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to