sonus av
v0.1.0
Sonus-AV เป็นไลบรารี Python ที่ออกแบบมาเพื่อปรับปรุงรูปแบบภาษาขนาดใหญ่ (LLMS) โดยการเพิ่มการสนับสนุนสำหรับอินพุตเสียงและภาพ ห้องสมุดนี้ทำให้กระบวนการแปลงคำพูดเป็นข้อความและวิเคราะห์ภาพได้ง่ายขึ้นก่อนที่จะป้อนข้อมูลเป็น LLMS
AudioProcessor ซึ่งรองรับหลายภาษาและสามารถจัดการการแปลตามเวลาจริงImageProcessor เพื่อแยกข้อความจากรูปภาพหรือสร้างคำอธิบายของภาพโดยใช้โมเดลการเรียนรู้ของเครื่องขั้นสูง ติดตั้งไลบรารีโดยใช้ PIP:
pip install sonus-av นี่คือวิธีที่คุณสามารถใช้ AudioProcessor เพื่อแปลงคำพูดเป็นข้อความ:
from sonus_av import AudioProcessor
# Initialize the processor
audio_processor = AudioProcessor ()
# Capture and translate audio to text
recognized_text = audio_processor . capture ( 'path_to_your_audio_file.wav' )
print ( recognized_text ) นี่คือวิธีที่คุณสามารถใช้ ImageProcessor เพื่อรับคำอธิบายของภาพ:
from sonus_av import ImageProcessor
# Initialize the processor with your OpenAI API key
image_processor = ImageProcessor ( api_key = 'your-openai-api-key' )
# Get an image description
image_description = image_processor . describe_image ( image_path )
print ( image_description )ยินดีต้อนรับ! โปรดแยกที่เก็บและเปิดคำขอดึงพร้อมการปรับปรุงของคุณ
โครงการนี้ได้รับใบอนุญาตภายใต้ใบอนุญาต MIT - ดูไฟล์ License.md สำหรับรายละเอียด