qaul / qaul.net

Internet Independent Wireless Mesh Communication App
https://qaul.net
GNU Affero General Public License v3.0
511 stars 62 forks source link

Record and Send Voice Messages #548

Open MathJud opened 1 year ago

MathJud commented 1 year ago

In Chat's the user should be able to send voice messages in direct chats.

Testing

sukhman-sukh commented 9 months ago

I would like to work on this issue. Please assign me this issue.

MathJud commented 9 months ago

@sukhman-sukh Thanks a lot for this offer. I assigned you to the issue.

sukhman-sukh commented 8 months ago

@MathJud Sorry for delay. I was working on the issue and went though code base. While implementing the record feature I am using import 'package:record/record.dart'; which is using await record.start(const RecordConfig(), path: 'aFullPath/myFile.m4a'); to start recording. I want to know what path should I specify. Is qual storing any messages on user end at any location?

MathJud commented 8 months ago

@sukhman-sukh Thanks for your work! The file should be saved locally and then handed over via RPC to libqaul.

1) record the file into the local flutter app storage. 2) send the path to the recorded file via to a chat group using the protobuf RPC message chatfile > SendFileRequest (see https://github.com/qaul/qaul.net/blob/0da91d6af5f8b99cc77f43f436a0608f3dea32fc/rust/libqaul/src/services/chat/chatfile_rpc.proto#L32 )

MathJud commented 8 months ago

In order to hand the file over to libqaul for sending:

MathJud commented 2 months ago

The feature is almost ready! Thanks to @sukhman-sukh & @brenodt ! The tests have shown the following discussion points and problems that need to be resolved: