[bot] RubyLLM speech synthesis (`RubyLLM.speak`) not instrumented
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 70/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- ruby
- Lĩnh vực
- observability-sre
Hướng nghiên cứu
Bắt đầu với lib/braintrust/contrib/ruby_llm/patcher.rb, instrumentation/chat.rb và integration.rb, sau đó so sánh các pattern Embed, Paint và Transcription hiện có. Kiểm tra các source của RubyLLM Speech và các phiên bản được hỗ trợ trong Appraisals. Được xem là hoàn tất khi RubyLLM.speak và RubyLLM::Speech.speak tạo các span thu thập input được liệt kê, metadata, thông tin chi tiết về audio output và latency mà không ghi lại các byte audio thô.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The ruby_llm gem provides RubyLLM.speak(input, ...) for text-to-speech synthesis using AI TTS models. This API is not instrumented by this SDK. The current RubyLLM integration only instruments RubyLLM::Chat — covering chat completions, tool execution, and streaming. speak is a distinct generative AI execution surface (it drives a TTS model to produce audio from text) and produces usage data (token counts via some providers), yet no span is created for it.
This is a direct parity gap with the OpenAI Audio integration gap (#146), which notes that TTS execution via client.audio.speech.create is also uninstrumented. Both use AI models to generate audio from text input.
What is missing
RubyLLM.speak(input, model:, voice:, ...) / RubyLLM::Speech.speak(input, ...) — invokes a TTS provider (OpenAI tts-1, tts-1-hd, or equivalent) and returns a RubyLLM::Speech object containing:
data— raw audio bytesmodel— model ID used for synthesisvoice— voice selectedformat— audio format (mp3, wav, flac, etc.)
What a span should capture
- Input: the text string passed to
speak - Metadata: model, voice, format, provider
- Output: audio format and size (not the raw binary bytes)
- Metrics:
time_to_first_token(latency)
The implementation pattern already exists: RubyLLM::Embed, RubyLLM::Paint, and RubyLLM::Transcription are single-method execution surfaces (see issue #136). RubyLLM::Speech follows the same shape and would be instrumented with the same approach: a new SpeechPatcher wrapping the speak class method.
Braintrust docs status
not_found — The Braintrust RubyLLM integration docs at https://www.braintrust.dev/docs/integrations/sdk-integrations/ruby-llm document only chat completions, tool calls, token usage, and streaming. Speech synthesis is not mentioned.
Upstream sources
- RubyLLM
Speechclass: https://github.com/crmne/ruby_llm/blob/main/lib/ruby_llm/speech.rb - RubyLLM module
speakmethod: https://github.com/crmne/ruby_llm/blob/main/lib/ruby_llm.rb - RubyGems (ruby_llm): https://rubygems.org/gems/ruby_llm — "Features chat (text, images, audio, PDFs), image generation, embeddings, tools (function calling)…" (audio includes TTS)
Local repo files inspected
lib/braintrust/contrib/ruby_llm/patcher.rb— defines onlyChatPatcher; noSpeechPatcherlib/braintrust/contrib/ruby_llm/instrumentation/chat.rb— wrapsChat#completeandChat#execute_toolonlylib/braintrust/contrib/ruby_llm/integration.rb— registers[ChatPatcher]onlyAppraisals— tests ruby_llm at versions 1.8, 1.9, and latest;speech.rbis present in all supported versions- Grep for
speak,Speech,tts,SpeechPatcheracrosslib/braintrust/returns zero matches
- Ngôn ngữ chính
- Ruby
- Star
- 9
- Fork
- 11
- Merge trung bình
- 3 ngày 43 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của braintrustdata/braintrust-sdk-ruby
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
braintrustdata/braintrust-sdk-ruby#155 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BOT ISSUE] OpenAI Chat Completions missing reasoning model and web search metadata parametersĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
braintrustdata/braintrust-sdk-ruby#143 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
braintrustdata/braintrust-sdk-ruby#137 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ruby
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 62/100
braintrustdata/braintrust-sdk-ruby#229 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ruby
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
braintrustdata/braintrust-sdk-ruby#228 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của braintrustdata/braintrust-sdk-ruby
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Dialog: clicking the panel's inner padding closes it (backdropClick matches the <dialog> itself)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Homebrew/homebrew-cask#295450 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
TheOdinProject/curriculum#31479 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
taskcluster/taskcluster#9284 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày