简体   繁体   English

Android,发送语音留言

[英]Android, sending a voice message

I've built an app for a client that basically sends a standard pre written SMS to the client of my client's phone asking for them to get in contact. 我为客户构建了一个应用程序,它基本上向我客户的手机客户端发送标准的预先写好的短信,要求他们联系。 Now the client would like to be able to send a pre recorded voice message to an answering service with the touch of a button, can this be done, firstly from an Android phone. 现在,客户希望能够通过触摸按钮将预先录制的语音消息发送到应答服务,这可以通过Android手机完成。

I'm guessing it can be done because when I search for an answer all I can find are apps that someone else has written that do just that. 我猜它可以做到,因为当我搜索答案时,我能找到的是其他人编写的应用程序。

Sometimes development tutorials can be hard to find when it comes to apps as you just get a long list of people trying to sell their apps…lol. 有时开发教程很难找到应用程序,因为你只是得到一大堆人试图出售他们的应用程序...大声笑。

Does anyone know of such a tutorial?r 有谁知道这样的教程?r

This is not an answer but maybe could help 这不是答案,但可能有所帮助

I once wrote an application like that for a particular answering service for a particular provider in my country. 我曾经为我所在国家的特定提供商编写了类似的应用程序。 To leave a message on their device I was basically required to compose an e-mail with a message recorded as an mp3 file and included as an attachment to the mail. 要在他们的设备上留言,我基本上需要撰写一封电子邮件,邮件记录为mp3文件,并作为邮件附件包含在内。 I then send such mail to a specific mail address of their answering service. 然后我将这些邮件发送到他们的电话接听服务的特定邮件地址。 I had to supply credentials for the mail to be accepted. 我必须提供要接受的邮件的凭据。 Such credentials (login/password) I obtained first by sending a specific port SMS to their service. 我首先通过向他们的服务发送特定端口SMS获得此类凭证(登录/密码)。

For composing mails with attachment I used an opensource IMAP client for Android (as a jar library added to my project). 为了编写带附件的邮件,我使用了Android的开源IMAP客户端(作为添加到我项目中的jar库)。 Don't rememeber which client it was but can find out. 不要记住它是哪个客户但可以找到。

I guess there's no common standard for that but basically all the answering services should do something similar. 我想这没有共同的标准,但基本上所有的应答服务都应该做类似的事情。

Sorry if this info is too vague, I was just given the protocol of how that particular answering service was working and implemented accordingly. 对不起,如果这个信息太模糊,我只是给出了特定应答服务如何工作和相应实施的协议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM