Traini AI SDK - Dog emotion analysis and human-dog communication platform
Project description
🐕 Traini AI SDK
Dog emotion analysis and human-dog communication platform
✨ Features
Traini AI SDK provides four main capabilities:
- 🖼️ Image Analysis - Analyze dog emotions from images
- 🎥 Video Analysis - Process dog videos to detect emotional states over time
- 👤➡️🐕 Human-to-Dog Translation - Convert human speech into dog-optimized audio
- 🐕➡️👤 Dog-to-Human Translation - Interpret dog vocalizations into human language
🚀 Installation
pip install traini-ai
💻 Quick Test
from traini_ai import TrainiClient
# Create client
client = TrainiClient()
# Test image analysis
result = client.analyze_image("dog.jpg", return_confidence=True)
print(f"Emotion: {result['emotion']}")
print(f"Confidence: {result['confidence']:.2%}")
# Test video analysis
result = client.analyze_video("video.mp4", return_timeline=True)
print(f"Dominant emotion: {result['dominant_emotion']}")
# Test human-to-dog translation
result = client.translate_human_to_dog("speech.wav", tone='friendly')
print(f"Translation: {result['text']}")
# Test dog-to-human translation
result = client.translate_dog_to_human("bark.wav", include_sound_type=True)
print(f"Sound type: {result['sound_type']}")
print(f"Meaning: {result['text']}")
📋 Output Formats
Image Analysis Output
{
'text': 'The dog appears happy.',
'emotion': 'happy', # Requires return_confidence=True
'confidence': 0.87, # Requires return_confidence=True
'audio': b'...' # Audio narration bytes
}
Video Analysis Output
{
'text': 'Throughout the video, the dog appears mostly happy.',
'dominant_emotion': 'happy',
'timeline': [ # Requires return_timeline=True
{
'timestamp': 0.5,
'emotion': 'happy',
'confidence': 0.85
},
{
'timestamp': 1.0,
'emotion': 'playful',
'confidence': 0.78
}
],
'audio': b'...' # Audio narration bytes
}
Human-to-Dog Translation Output
{
'text': 'Translated to dog-friendly frequencies with friendly tone.',
'transcription': 'Good boy', # Requires include_transcription=True
'interpretation': 'Positive reinforcement command',
'audio': b'...' # Dog-optimized audio bytes
}
Dog-to-Human Translation Output
{
'text': 'The dog is warning about something in their territory.',
'sound_type': 'bark_alert', # Requires include_sound_type=True
'emotion': 'alert',
'context': 'territorial',
'audio': b'...' # Audio narration bytes
}
Supported Sound Types:
bark_alert- Warning or alert barkbark_play- Playful barkbark_excitement- Excited barkwhine- Whining soundgrowl- Growling soundhowl- Howling sound
📖 License
MIT License - see the LICENSE file for details.
Made with ❤️ for dogs and their humans
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
traini_ai-1.0.0.tar.gz
(20.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
traini_ai-1.0.0-py3-none-any.whl
(19.7 kB
view details)
File details
Details for the file traini_ai-1.0.0.tar.gz.
File metadata
- Download URL: traini_ai-1.0.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8ed700b9c38123e86bcf3a9954de8bffc3e1057f79f956c9f85091f0267578b
|
|
| MD5 |
3e0f084cd2550dae9473483ec909a964
|
|
| BLAKE2b-256 |
c1a72ead547d8824f5955390b7e6e826ca6f01d86ad4bf54d17790ce795dbeb5
|
File details
Details for the file traini_ai-1.0.0-py3-none-any.whl.
File metadata
- Download URL: traini_ai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0891f25d5eda40e0827b72a212250c89e0c5dc749814cd043d3078e4206d706
|
|
| MD5 |
b8ae23f549585f3a83c43934b55dfb24
|
|
| BLAKE2b-256 |
e9ea7678f920a4d22e64263ec1665279f5e8a1794996d0932529ec4c4aa03e37
|