Discussion Board

Results 1 to 12 of 12
  1. #1
    Super Contributor Cxt_programmer's Avatar
    Join Date
    Feb 2006
    Location
    Beijing
    Posts
    4,360
    http://discussion.forum.nokia.com/fo...d.php?t=118533

    liuxg在上面帖子中提到:
    On S60 3rd edition, playing voice data over the telephony link is not working unless you use "APS" (Audio Proxy Server), which can be found from the release plug-in. On S60 2nd edition, there should be no problem at all.

    我下载了APS和相应的SDK Extension Plug-in,看了例子和文档,没找到关于如何设置输出设备的说明,我该如何“playing voice data over the telephony link”?
    另外,Write方法只是“initializes the output stream for writing to the audio output device”,能否打开一个音频文件作为输出源?

    希望得到大家的帮助,谢谢。
    Stay Hungry. Stay Foolish.
    Sina Weibo:
    http://weibo.com/cxt728
    QQ Weibo:
    http://t.qq.com/Cxt_programmer

  2. #2
    Super Contributor liuxg's Avatar
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609
    The answer is yes. You can read an .amr file or .wav (not recommended due to the bigger size) file to the telephony link. Some developders did that.

  3. #3
    Super Contributor Cxt_programmer's Avatar
    Join Date
    Feb 2006
    Location
    Beijing
    Posts
    4,360
    Quote Originally Posted by liuxg View Post
    The answer is yes. You can read an .amr file or .wav (not recommended due to the bigger size) file to the telephony link. Some developders did that.
    多谢liuxg,能否告诉我该怎么做吗?我在APS的文档里面和例子里面,实在找不到方法。

    我想做的就是,用户在某个条件下接通电话后,先给通话的链路播放一段音频。
    谢谢。
    Stay Hungry. Stay Foolish.
    Sina Weibo:
    http://weibo.com/cxt728
    QQ Weibo:
    http://t.qq.com/Cxt_programmer

  4. #4
    Super Contributor liuxg's Avatar
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609
    I do not have a working sample code yet. Some developers did that at my suggestions. Basically, you can open an .amr/.wav, according to the frame length and sampling rate, keep feeding the data to the buffers. The voice data will be heard at the other end.

  5. #5
    Super Contributor Cxt_programmer's Avatar
    Join Date
    Feb 2006
    Location
    Beijing
    Posts
    4,360
    to liuxg:
    我按照您说的方法试了,每次从音频文件读取KAPSDataBufSize(164)个字节Send到RMsgQueue中,把整个文件Send完之后,调用iSession.Write();尝试播音,但是没有出声......

    是否有什么特别需要注意的地方?希望得到您的指点,谢谢!
    Stay Hungry. Stay Foolish.
    Sina Weibo:
    http://weibo.com/cxt728
    QQ Weibo:
    http://t.qq.com/Cxt_programmer

  6. #6
    Super Contributor Cxt_programmer's Avatar
    Join Date
    Feb 2006
    Location
    Beijing
    Posts
    4,360
    顶起来......不好意思^_^
    Stay Hungry. Stay Foolish.
    Sina Weibo:
    http://weibo.com/cxt728
    QQ Weibo:
    http://t.qq.com/Cxt_programmer

  7. #7
    Super Contributor liuxg's Avatar
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609
    What audio format are you using? Did you set the correct frame rate and length?

  8. #8
    Super Contributor Cxt_programmer's Avatar
    Join Date
    Feb 2006
    Location
    Beijing
    Posts
    4,360
    多谢liuxg,音频文件为amr格式;我在那个例子上进行的修改,StartStreaming之前SetAmr了。
    Stay Hungry. Stay Foolish.
    Sina Weibo:
    http://weibo.com/cxt728
    QQ Weibo:
    http://t.qq.com/Cxt_programmer

  9. #9
    Super Contributor paipeng's Avatar
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721
    problem solved?


    How!?


    I want to play an amr with APS too. But by feeding data into buffer, there is no sound out.


    Thanks

    Pai

  10. #10
    Super Contributor Cxt_programmer's Avatar
    Join Date
    Feb 2006
    Location
    Beijing
    Posts
    4,360
    Quote Originally Posted by paipeng View Post
    problem solved?
    How!?
    I want to play an amr with APS too. But by feeding data into buffer, there is no sound out.
    Thanks
    Pai
    解决了呵呵,往buffer填充音频数据的时候,不要一下填满,需要一帧一帧不断的填充。你可以用UE或者其他工具打开你的音频文件,看看他们每一帧是多少字节,然后每次读出这么多填入buffer。或者看看有没有api可以得到某个音频文件一帧的字节数。
    Stay Hungry. Stay Foolish.
    Sina Weibo:
    http://weibo.com/cxt728
    QQ Weibo:
    http://t.qq.com/Cxt_programmer

  11. #11
    Super Contributor paipeng's Avatar
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721
    Thanks a lot.

    How to know the buffer size of each frame?
    Last edited by paipeng; 2008-05-20 at 10:22.

  12. #12
    Super Contributor Cxt_programmer's Avatar
    Join Date
    Feb 2006
    Location
    Beijing
    Posts
    4,360
    具体细节我记不太清楚了。
    aps例子中的队列还是需要的。
    Stay Hungry. Stay Foolish.
    Sina Weibo:
    http://weibo.com/cxt728
    QQ Weibo:
    http://t.qq.com/Cxt_programmer

Similar Threads

  1. Audio Proxy Server 2.3 available
    By nly in forum VoIP
    Replies: 8
    Last Post: 2009-03-14, 21:39
  2. Proxy server adress and port number
    By S.S.Sudhakar in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2007-11-13, 14:26
  3. Audio Proxy Server v2.31 released
    By nly in forum VoIP
    Replies: 30
    Last Post: 2007-11-02, 16:34
  4. HTTP proxy server connection to browser
    By k.sandeep in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-03-15, 12:22
  5. Replies: 0
    Last Post: 2006-02-18, 18:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved