steep-balloon-41261
02/25/2025, 7:13 AMgray-monkey-83525
02/25/2025, 7:13 AMconst fileOutput = new EncodedFileOutput({
filepath: "outbound-905421950620-room-xeqyxu3FWiR9.m4a.ogg",
output: {
case: 's3',
value: new S3Upload({
accessKey: 'your-access-key',
secret: 'your-secret-key',
bucket: 'asterisk-call-recordings',
region: 'eu-central-1',
endpoint: 'https://asterisk-call-recordings.s3.eu-central-1.amazonaws.com',
forcePathStyle: true
}),
},
});
// Use this configuration when starting the egress
const egressInfo = await egressClient.startRoomCompositeEgress('your-room-name', { fileOutputs: [fileOutput] });
console.log("Egress started:", egressInfo);
This snippet sets the endpoint
to match the correct format for your S3 bucket in the eu-central-1
region. Ensure that forcePathStyle
is set to true
if you're using a non-AWS S3-compatible service.
Would you like more details on this setup?
Sources:
- LiveKit documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.gray-monkey-83525
02/25/2025, 7:49 AMmelodic-vegetable-78787
02/25/2025, 7:58 AMgray-monkey-83525
02/25/2025, 7:58 AMboto3.client
configuration.
2. Set the Endpoint URL: If you're using a custom S3-compatible service, you need to specify the endpoint_url
parameter to point to your service's endpoint.
3. Use Path-Style Access: If required by your service, set config
to use path-style access.
Here's an example of how you might configure the Boto3 client:
import boto3
from botocore.client import Config
s3_client = boto3.client(
's3',
aws_access_key_id="fknfkfmkg",
aws_secret_access_key="knfkfkft",
region_name="eu-central-1", # Specify your region
endpoint_url="https://your-custom-endpoint.com", # Specify your custom endpoint
config=Config(s3={'addressing_style': 'path'}) # Use path-style access if needed
)
Would you like more details on configuring Boto3 for S3 access?
Sources:
- LiveKit documentation 👍 1 button 👎 0 button 💡 Hint: Mention @millions-hair-24956 in the thread for followups.