asmr_video_generator 1772.75.732 copy "asmr_video_generator: ^1772.75.732" to clipboard
asmr_video_generator: ^1772.75.732 copied to clipboard

Professional integration for an AI ASMR video generator.

asmr-video-generator #

A Dart package for programmatically generating ASMR-style videos using customizable sound effects and visual elements. This utility simplifies the creation process, allowing developers to automate and personalize ASMR video content.

Installation #

To use asmr-video-generator in your Dart project, add it as a dependency in your pubspec.yaml file: yaml dependencies: asmr_video_generator: ^1.0.0 # Replace with the latest version

Then, run dart pub get to install the package.

Usage Examples #

Here are a few examples demonstrating how to use asmr-video-generator:

1. Basic Video Generation with Default Settings: dart import 'package:asmr_video_generator/asmr_video_generator.dart';

void main() async { final generator = AsmrVideoGenerator(); await generator.generateVideo(outputPath: 'output.mp4'); print('Video generated successfully!'); }

This example creates a basic ASMR video using the default sound effects and visual transitions. The output video is saved as output.mp4.

2. Customizing Sound Effects: dart import 'package:asmr_video_generator/asmr_video_generator.dart';

void main() async { final generator = AsmrVideoGenerator( soundEffects: [ SoundEffect(filePath: 'assets/sounds/tapping.mp3', volume: 0.8), SoundEffect(filePath: 'assets/sounds/whispering.mp3', startTime: 5.0), ], ); await generator.generateVideo(outputPath: 'custom_sounds.mp4'); print('Video with custom sounds generated!'); }

This example demonstrates how to specify custom sound effects, including their file paths, volumes, and start times. Make sure the sound files exist at the specified paths.

3. Adding Visual Elements (Images and Text): dart import 'package:asmr_video_generator/asmr_video_generator.dart';

void main() async { final generator = AsmrVideoGenerator( visualElements: [ ImageElement(filePath: 'assets/images/relaxing_image.jpg', duration: 10.0), TextOverlay(text: 'Relax and Unwind', fontSize: 32, color: 'white', position: TextPosition.center, startTime: 2.0, duration: 5.0), ], ); await generator.generateVideo(outputPath: 'visual_video.mp4'); print('Video with visual elements generated!'); }

This example shows how to add images and text overlays to your ASMR video. You can control the duration, position, font size, and color of these elements.

4. Combining Sound Effects and Visuals: dart import 'package:asmr_video_generator/asmr_video_generator.dart';

void main() async { final generator = AsmrVideoGenerator( soundEffects: [ SoundEffect(filePath: 'assets/sounds/page_turning.mp3', volume: 0.7), ], visualElements: [ ImageElement(filePath: 'assets/images/book_image.jpg', duration: 15.0), TextOverlay(text: 'Gentle Sounds', fontSize: 48, color: 'black', position: TextPosition.bottomRight, startTime: 0.0, duration: 15.0), ], ); await generator.generateVideo(outputPath: 'combined_video.mp4'); print('Combined video generated!'); }

This showcases the combination of both audio and visual components for a richer ASMR experience.

5. Setting Video Dimensions and Frame Rate: dart import 'package:asmr_video_generator/asmr_video_generator.dart';

void main() async { final generator = AsmrVideoGenerator( videoWidth: 1280, videoHeight: 720, frameRate: 30, ); await generator.generateVideo(outputPath: 'dimensions_video.mp4'); print('Video with custom dimensions generated!'); }

This example demonstrates how to customize the video dimensions (width and height) and the frame rate.

Feature Summary #

  • Sound Effect Integration: Easily incorporate various sound effects into your videos.
  • Visual Element Support: Add images and text overlays to enhance the visual appeal.
  • Customizable Parameters: Control volume, start times, durations, positions, and more.
  • Flexible Output: Generate videos in standard MP4 format.
  • Easy to Use API: Provides a simple and intuitive API for creating ASMR videos programmatically.
  • Video Dimension Control: Set custom video width, height and frame rate.

License #

MIT License

This package is part of the asmr-video-generator ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/video/asmr-video-generator/

1
likes
150
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Professional integration for an AI ASMR video generator.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on asmr_video_generator