diff --git a/Lagrange.Core/Message/MessageBuilder.cs b/Lagrange.Core/Message/MessageBuilder.cs
index c1386e3d0..ea4efd439 100644
--- a/Lagrange.Core/Message/MessageBuilder.cs
+++ b/Lagrange.Core/Message/MessageBuilder.cs
@@ -126,6 +126,30 @@ public MessageBuilder Image(byte[] file)
return this;
}
+ ///
+ /// Add a audio entity to the message chain
+ ///
+ /// The audio file that has already been converted to SilkCodec
+ public MessageBuilder Record(byte[] file)
+ {
+ var recordEntity = new RecordEntity(file);
+ _chain.Add(recordEntity);
+
+ return this;
+ }
+
+ ///
+ /// Add a audio entity to the message chain
+ ///
+ /// The audio file that has already been converted to SilkCodec
+ public MessageBuilder Record(string filePath)
+ {
+ var recordEntity = new RecordEntity(filePath);
+ _chain.Add(recordEntity);
+
+ return this;
+ }
+
public MessageBuilder File(byte[] file, string fileName)
{
var fileEntity = new FileEntity(file, fileName);