sarvamai 0.1.10__tar.gz → 0.1.11a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/PKG-INFO +1 -1
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/pyproject.toml +1 -1
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/__init__.py +52 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/client.py +3 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/client_wrapper.py +2 -2
- sarvamai-0.1.11a1/src/sarvamai/errors/service_unavailable_error.py +10 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/__init__.py +22 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/base_job_parameters.py +7 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/bulk_job_callback.py +15 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/bulk_job_init_response_v_1.py +27 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/file_signed_url_details.py +10 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/files_download_response.py +15 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/files_request.py +10 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/files_upload_response.py +15 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/job_status_v_1.py +70 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/speech_to_text_job_parameters.py +32 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/task_detail_v_1.py +15 -0
- sarvamai-0.1.11a1/src/sarvamai/requests/task_file_details.py +8 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text/raw_client.py +8 -9
- sarvamai-0.1.11a1/src/sarvamai/speech_to_text_job/client.py +529 -0
- sarvamai-0.1.11a1/src/sarvamai/speech_to_text_job/job.py +468 -0
- sarvamai-0.1.11a1/src/sarvamai/speech_to_text_job/raw_client.py +1189 -0
- sarvamai-0.1.11a1/src/sarvamai/text_to_speech_streaming/__init__.py +4 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/__init__.py +28 -0
- sarvamai-0.1.11a1/src/sarvamai/types/base_job_parameters.py +17 -0
- sarvamai-0.1.11a1/src/sarvamai/types/bulk_job_callback.py +27 -0
- sarvamai-0.1.11a1/src/sarvamai/types/bulk_job_init_response_v_1.py +39 -0
- sarvamai-0.1.11a1/src/sarvamai/types/file_signed_url_details.py +20 -0
- sarvamai-0.1.11a1/src/sarvamai/types/files_download_response.py +25 -0
- sarvamai-0.1.11a1/src/sarvamai/types/files_request.py +20 -0
- sarvamai-0.1.11a1/src/sarvamai/types/files_upload_response.py +25 -0
- sarvamai-0.1.11a1/src/sarvamai/types/job_state.py +5 -0
- sarvamai-0.1.11a1/src/sarvamai/types/job_status_v_1.py +80 -0
- sarvamai-0.1.11a1/src/sarvamai/types/speech_to_text_job_parameters.py +44 -0
- sarvamai-0.1.11a1/src/sarvamai/types/storage_container_type.py +5 -0
- sarvamai-0.1.11a1/src/sarvamai/types/task_detail_v_1.py +25 -0
- sarvamai-0.1.11a1/src/sarvamai/types/task_file_details.py +20 -0
- sarvamai-0.1.11a1/src/sarvamai/types/task_state.py +5 -0
- sarvamai-0.1.10/src/sarvamai/errors/service_unavailable_error.py +0 -11
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/README.md +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/chat/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/chat/client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/chat/raw_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/api_error.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/datetime_utils.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/events.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/file.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/force_multipart.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/http_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/http_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/jsonable_encoder.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/pydantic_utilities.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/query_encoder.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/remove_none_from_dict.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/request_options.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/core/serialization.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/environment.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/errors/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/errors/bad_request_error.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/errors/forbidden_error.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/errors/internal_server_error.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/errors/too_many_requests_error.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/errors/unprocessable_entity_error.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/play.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/py.typed +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/audio_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/audio_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/audio_output.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/audio_output_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/chat_completion_request_assistant_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/chat_completion_request_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/chat_completion_request_system_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/chat_completion_request_user_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/chat_completion_response_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/choice.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/completion_usage.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/config_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/configure_connection.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/configure_connection_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/create_chat_completion_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/diarized_entry.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/diarized_transcript.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/error_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/error_details.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/error_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/error_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/error_response_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/events_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/flush_signal.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/language_identification_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/ping_signal.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/send_text.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/send_text_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/speech_to_text_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/speech_to_text_response_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/speech_to_text_streaming_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/speech_to_text_transcription_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/speech_to_text_translate_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/speech_to_text_translate_response_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/speech_to_text_translate_streaming_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/speech_to_text_translate_transcription_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/stop_configuration.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/text_to_speech_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/timestamps_model.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/transcription_metrics.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/translation_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/requests/transliteration_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text/client.py +0 -0
- {sarvamai-0.1.10/src/sarvamai/text → sarvamai-0.1.11a1/src/sarvamai/speech_to_text_job}/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/raw_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/socket_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/types/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_high_vad_sensitivity.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_language_code.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_model.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_vad_signals.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_translate_streaming/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_translate_streaming/client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_translate_streaming/raw_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_translate_streaming/socket_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_translate_streaming/types/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_translate_streaming/types/speech_to_text_translate_streaming_high_vad_sensitivity.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_translate_streaming/types/speech_to_text_translate_streaming_model.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/speech_to_text_translate_streaming/types/speech_to_text_translate_streaming_vad_signals.py +0 -0
- {sarvamai-0.1.10/src/sarvamai/text_to_speech → sarvamai-0.1.11a1/src/sarvamai/text}/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/text/client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/text/raw_client.py +0 -0
- {sarvamai-0.1.10/src/sarvamai/text_to_speech_streaming → sarvamai-0.1.11a1/src/sarvamai/text_to_speech}/__init__.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/text_to_speech/client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/text_to_speech/raw_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/text_to_speech_streaming/client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/text_to_speech_streaming/raw_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/text_to_speech_streaming/socket_client.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/audio_codec.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/audio_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/audio_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/audio_output.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/audio_output_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/chat_completion_request_assistant_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/chat_completion_request_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/chat_completion_request_system_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/chat_completion_request_user_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/chat_completion_response_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/choice.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/completion_usage.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/config_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/configure_connection.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/configure_connection_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/configure_connection_data_output_audio_bitrate.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/configure_connection_data_speaker.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/configure_connection_data_target_language_code.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/create_chat_completion_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/diarized_entry.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/diarized_transcript.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/error_code.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/error_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/error_details.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/error_message.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/error_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/error_response_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/events_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/finish_reason.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/flush_signal.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/format.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/language_identification_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/numerals_format.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/ping_signal.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/reasoning_effort.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/response_type.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/role.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/sarvam_model_ids.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/send_text.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/send_text_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_sample_rate.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_language.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_model.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_response_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_streaming_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_transcription_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_translate_language.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_translate_model.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_translate_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_translate_response_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_translate_streaming_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/speech_to_text_translate_transcription_data.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/spoken_form_numerals_format.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/stop_configuration.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/text_to_speech_language.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/text_to_speech_model.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/text_to_speech_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/text_to_speech_speaker.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/timestamps_model.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/transcription_metrics.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/translate_mode.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/translate_model.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/translate_source_language.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/translate_speaker_gender.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/translate_target_language.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/translation_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/translatiterate_target_language.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/transliterate_mode.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/transliterate_source_language.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/types/transliteration_response.py +0 -0
- {sarvamai-0.1.10 → sarvamai-0.1.11a1}/src/sarvamai/version.py +0 -0
|
@@ -8,6 +8,9 @@ from .types import (
|
|
|
8
8
|
AudioMessage,
|
|
9
9
|
AudioOutput,
|
|
10
10
|
AudioOutputData,
|
|
11
|
+
BaseJobParameters,
|
|
12
|
+
BulkJobCallback,
|
|
13
|
+
BulkJobInitResponseV1,
|
|
11
14
|
ChatCompletionRequestAssistantMessage,
|
|
12
15
|
ChatCompletionRequestMessage,
|
|
13
16
|
ChatCompletionRequestMessage_Assistant,
|
|
@@ -34,9 +37,15 @@ from .types import (
|
|
|
34
37
|
ErrorResponse,
|
|
35
38
|
ErrorResponseData,
|
|
36
39
|
EventsData,
|
|
40
|
+
FileSignedUrlDetails,
|
|
41
|
+
FilesDownloadResponse,
|
|
42
|
+
FilesRequest,
|
|
43
|
+
FilesUploadResponse,
|
|
37
44
|
FinishReason,
|
|
38
45
|
FlushSignal,
|
|
39
46
|
Format,
|
|
47
|
+
JobState,
|
|
48
|
+
JobStatusV1,
|
|
40
49
|
LanguageIdentificationResponse,
|
|
41
50
|
NumeralsFormat,
|
|
42
51
|
PingSignal,
|
|
@@ -47,6 +56,7 @@ from .types import (
|
|
|
47
56
|
SendText,
|
|
48
57
|
SendTextData,
|
|
49
58
|
SpeechSampleRate,
|
|
59
|
+
SpeechToTextJobParameters,
|
|
50
60
|
SpeechToTextLanguage,
|
|
51
61
|
SpeechToTextModel,
|
|
52
62
|
SpeechToTextResponse,
|
|
@@ -61,6 +71,10 @@ from .types import (
|
|
|
61
71
|
SpeechToTextTranslateTranscriptionData,
|
|
62
72
|
SpokenFormNumeralsFormat,
|
|
63
73
|
StopConfiguration,
|
|
74
|
+
StorageContainerType,
|
|
75
|
+
TaskDetailV1,
|
|
76
|
+
TaskFileDetails,
|
|
77
|
+
TaskState,
|
|
64
78
|
TextToSpeechLanguage,
|
|
65
79
|
TextToSpeechModel,
|
|
66
80
|
TextToSpeechResponse,
|
|
@@ -89,6 +103,7 @@ from .errors import (
|
|
|
89
103
|
from . import (
|
|
90
104
|
chat,
|
|
91
105
|
speech_to_text,
|
|
106
|
+
speech_to_text_job,
|
|
92
107
|
speech_to_text_streaming,
|
|
93
108
|
speech_to_text_translate_streaming,
|
|
94
109
|
text,
|
|
@@ -102,6 +117,9 @@ from .requests import (
|
|
|
102
117
|
AudioMessageParams,
|
|
103
118
|
AudioOutputDataParams,
|
|
104
119
|
AudioOutputParams,
|
|
120
|
+
BaseJobParametersParams,
|
|
121
|
+
BulkJobCallbackParams,
|
|
122
|
+
BulkJobInitResponseV1Params,
|
|
105
123
|
ChatCompletionRequestAssistantMessageParams,
|
|
106
124
|
ChatCompletionRequestMessageParams,
|
|
107
125
|
ChatCompletionRequestMessage_AssistantParams,
|
|
@@ -124,11 +142,17 @@ from .requests import (
|
|
|
124
142
|
ErrorResponseDataParams,
|
|
125
143
|
ErrorResponseParams,
|
|
126
144
|
EventsDataParams,
|
|
145
|
+
FileSignedUrlDetailsParams,
|
|
146
|
+
FilesDownloadResponseParams,
|
|
147
|
+
FilesRequestParams,
|
|
148
|
+
FilesUploadResponseParams,
|
|
127
149
|
FlushSignalParams,
|
|
150
|
+
JobStatusV1Params,
|
|
128
151
|
LanguageIdentificationResponseParams,
|
|
129
152
|
PingSignalParams,
|
|
130
153
|
SendTextDataParams,
|
|
131
154
|
SendTextParams,
|
|
155
|
+
SpeechToTextJobParametersParams,
|
|
132
156
|
SpeechToTextResponseDataParams,
|
|
133
157
|
SpeechToTextResponseParams,
|
|
134
158
|
SpeechToTextStreamingResponseParams,
|
|
@@ -138,6 +162,8 @@ from .requests import (
|
|
|
138
162
|
SpeechToTextTranslateStreamingResponseParams,
|
|
139
163
|
SpeechToTextTranslateTranscriptionDataParams,
|
|
140
164
|
StopConfigurationParams,
|
|
165
|
+
TaskDetailV1Params,
|
|
166
|
+
TaskFileDetailsParams,
|
|
141
167
|
TextToSpeechResponseParams,
|
|
142
168
|
TimestampsModelParams,
|
|
143
169
|
TranscriptionMetricsParams,
|
|
@@ -169,6 +195,12 @@ __all__ = [
|
|
|
169
195
|
"AudioOutputDataParams",
|
|
170
196
|
"AudioOutputParams",
|
|
171
197
|
"BadRequestError",
|
|
198
|
+
"BaseJobParameters",
|
|
199
|
+
"BaseJobParametersParams",
|
|
200
|
+
"BulkJobCallback",
|
|
201
|
+
"BulkJobCallbackParams",
|
|
202
|
+
"BulkJobInitResponseV1",
|
|
203
|
+
"BulkJobInitResponseV1Params",
|
|
172
204
|
"ChatCompletionRequestAssistantMessage",
|
|
173
205
|
"ChatCompletionRequestAssistantMessageParams",
|
|
174
206
|
"ChatCompletionRequestMessage",
|
|
@@ -217,12 +249,23 @@ __all__ = [
|
|
|
217
249
|
"ErrorResponseParams",
|
|
218
250
|
"EventsData",
|
|
219
251
|
"EventsDataParams",
|
|
252
|
+
"FileSignedUrlDetails",
|
|
253
|
+
"FileSignedUrlDetailsParams",
|
|
254
|
+
"FilesDownloadResponse",
|
|
255
|
+
"FilesDownloadResponseParams",
|
|
256
|
+
"FilesRequest",
|
|
257
|
+
"FilesRequestParams",
|
|
258
|
+
"FilesUploadResponse",
|
|
259
|
+
"FilesUploadResponseParams",
|
|
220
260
|
"FinishReason",
|
|
221
261
|
"FlushSignal",
|
|
222
262
|
"FlushSignalParams",
|
|
223
263
|
"ForbiddenError",
|
|
224
264
|
"Format",
|
|
225
265
|
"InternalServerError",
|
|
266
|
+
"JobState",
|
|
267
|
+
"JobStatusV1",
|
|
268
|
+
"JobStatusV1Params",
|
|
226
269
|
"LanguageIdentificationResponse",
|
|
227
270
|
"LanguageIdentificationResponseParams",
|
|
228
271
|
"NumeralsFormat",
|
|
@@ -240,6 +283,8 @@ __all__ = [
|
|
|
240
283
|
"SendTextParams",
|
|
241
284
|
"ServiceUnavailableError",
|
|
242
285
|
"SpeechSampleRate",
|
|
286
|
+
"SpeechToTextJobParameters",
|
|
287
|
+
"SpeechToTextJobParametersParams",
|
|
243
288
|
"SpeechToTextLanguage",
|
|
244
289
|
"SpeechToTextModel",
|
|
245
290
|
"SpeechToTextResponse",
|
|
@@ -270,6 +315,12 @@ __all__ = [
|
|
|
270
315
|
"SpokenFormNumeralsFormat",
|
|
271
316
|
"StopConfiguration",
|
|
272
317
|
"StopConfigurationParams",
|
|
318
|
+
"StorageContainerType",
|
|
319
|
+
"TaskDetailV1",
|
|
320
|
+
"TaskDetailV1Params",
|
|
321
|
+
"TaskFileDetails",
|
|
322
|
+
"TaskFileDetailsParams",
|
|
323
|
+
"TaskState",
|
|
273
324
|
"TextToSpeechLanguage",
|
|
274
325
|
"TextToSpeechModel",
|
|
275
326
|
"TextToSpeechResponse",
|
|
@@ -296,6 +347,7 @@ __all__ = [
|
|
|
296
347
|
"__version__",
|
|
297
348
|
"chat",
|
|
298
349
|
"speech_to_text",
|
|
350
|
+
"speech_to_text_job",
|
|
299
351
|
"speech_to_text_streaming",
|
|
300
352
|
"speech_to_text_translate_streaming",
|
|
301
353
|
"text",
|
|
@@ -9,6 +9,7 @@ from .core.api_error import ApiError
|
|
|
9
9
|
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
10
10
|
from .environment import SarvamAIEnvironment
|
|
11
11
|
from .speech_to_text.client import AsyncSpeechToTextClient, SpeechToTextClient
|
|
12
|
+
from .speech_to_text_job.client import AsyncSpeechToTextJobClient, SpeechToTextJobClient
|
|
12
13
|
from .speech_to_text_streaming.client import AsyncSpeechToTextStreamingClient, SpeechToTextStreamingClient
|
|
13
14
|
from .speech_to_text_translate_streaming.client import (
|
|
14
15
|
AsyncSpeechToTextTranslateStreamingClient,
|
|
@@ -88,6 +89,7 @@ class SarvamAI:
|
|
|
88
89
|
self.speech_to_text = SpeechToTextClient(client_wrapper=self._client_wrapper)
|
|
89
90
|
self.text_to_speech = TextToSpeechClient(client_wrapper=self._client_wrapper)
|
|
90
91
|
self.chat = ChatClient(client_wrapper=self._client_wrapper)
|
|
92
|
+
self.speech_to_text_job = SpeechToTextJobClient(client_wrapper=self._client_wrapper)
|
|
91
93
|
self.speech_to_text_streaming = SpeechToTextStreamingClient(client_wrapper=self._client_wrapper)
|
|
92
94
|
self.speech_to_text_translate_streaming = SpeechToTextTranslateStreamingClient(
|
|
93
95
|
client_wrapper=self._client_wrapper
|
|
@@ -164,6 +166,7 @@ class AsyncSarvamAI:
|
|
|
164
166
|
self.speech_to_text = AsyncSpeechToTextClient(client_wrapper=self._client_wrapper)
|
|
165
167
|
self.text_to_speech = AsyncTextToSpeechClient(client_wrapper=self._client_wrapper)
|
|
166
168
|
self.chat = AsyncChatClient(client_wrapper=self._client_wrapper)
|
|
169
|
+
self.speech_to_text_job = AsyncSpeechToTextJobClient(client_wrapper=self._client_wrapper)
|
|
167
170
|
self.speech_to_text_streaming = AsyncSpeechToTextStreamingClient(client_wrapper=self._client_wrapper)
|
|
168
171
|
self.speech_to_text_translate_streaming = AsyncSpeechToTextTranslateStreamingClient(
|
|
169
172
|
client_wrapper=self._client_wrapper
|
|
@@ -23,10 +23,10 @@ class BaseClientWrapper:
|
|
|
23
23
|
|
|
24
24
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
25
25
|
headers: typing.Dict[str, str] = {
|
|
26
|
-
"User-Agent": "sarvamai/0.1.
|
|
26
|
+
"User-Agent": "sarvamai/0.1.11a1",
|
|
27
27
|
"X-Fern-Language": "Python",
|
|
28
28
|
"X-Fern-SDK-Name": "sarvamai",
|
|
29
|
-
"X-Fern-SDK-Version": "0.1.
|
|
29
|
+
"X-Fern-SDK-Version": "0.1.11a1",
|
|
30
30
|
**(self.get_custom_headers() or {}),
|
|
31
31
|
}
|
|
32
32
|
headers["api-subscription-key"] = self.api_subscription_key
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ..core.api_error import ApiError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ServiceUnavailableError(ApiError):
|
|
9
|
+
def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
|
|
10
|
+
super().__init__(status_code=503, headers=headers, body=body)
|
|
@@ -6,6 +6,9 @@ from .audio_data import AudioDataParams
|
|
|
6
6
|
from .audio_message import AudioMessageParams
|
|
7
7
|
from .audio_output import AudioOutputParams
|
|
8
8
|
from .audio_output_data import AudioOutputDataParams
|
|
9
|
+
from .base_job_parameters import BaseJobParametersParams
|
|
10
|
+
from .bulk_job_callback import BulkJobCallbackParams
|
|
11
|
+
from .bulk_job_init_response_v_1 import BulkJobInitResponseV1Params
|
|
9
12
|
from .chat_completion_request_assistant_message import ChatCompletionRequestAssistantMessageParams
|
|
10
13
|
from .chat_completion_request_message import (
|
|
11
14
|
ChatCompletionRequestMessageParams,
|
|
@@ -30,11 +33,17 @@ from .error_message import ErrorMessageParams
|
|
|
30
33
|
from .error_response import ErrorResponseParams
|
|
31
34
|
from .error_response_data import ErrorResponseDataParams
|
|
32
35
|
from .events_data import EventsDataParams
|
|
36
|
+
from .file_signed_url_details import FileSignedUrlDetailsParams
|
|
37
|
+
from .files_download_response import FilesDownloadResponseParams
|
|
38
|
+
from .files_request import FilesRequestParams
|
|
39
|
+
from .files_upload_response import FilesUploadResponseParams
|
|
33
40
|
from .flush_signal import FlushSignalParams
|
|
41
|
+
from .job_status_v_1 import JobStatusV1Params
|
|
34
42
|
from .language_identification_response import LanguageIdentificationResponseParams
|
|
35
43
|
from .ping_signal import PingSignalParams
|
|
36
44
|
from .send_text import SendTextParams
|
|
37
45
|
from .send_text_data import SendTextDataParams
|
|
46
|
+
from .speech_to_text_job_parameters import SpeechToTextJobParametersParams
|
|
38
47
|
from .speech_to_text_response import SpeechToTextResponseParams
|
|
39
48
|
from .speech_to_text_response_data import SpeechToTextResponseDataParams
|
|
40
49
|
from .speech_to_text_streaming_response import SpeechToTextStreamingResponseParams
|
|
@@ -44,6 +53,8 @@ from .speech_to_text_translate_response_data import SpeechToTextTranslateRespons
|
|
|
44
53
|
from .speech_to_text_translate_streaming_response import SpeechToTextTranslateStreamingResponseParams
|
|
45
54
|
from .speech_to_text_translate_transcription_data import SpeechToTextTranslateTranscriptionDataParams
|
|
46
55
|
from .stop_configuration import StopConfigurationParams
|
|
56
|
+
from .task_detail_v_1 import TaskDetailV1Params
|
|
57
|
+
from .task_file_details import TaskFileDetailsParams
|
|
47
58
|
from .text_to_speech_response import TextToSpeechResponseParams
|
|
48
59
|
from .timestamps_model import TimestampsModelParams
|
|
49
60
|
from .transcription_metrics import TranscriptionMetricsParams
|
|
@@ -55,6 +66,9 @@ __all__ = [
|
|
|
55
66
|
"AudioMessageParams",
|
|
56
67
|
"AudioOutputDataParams",
|
|
57
68
|
"AudioOutputParams",
|
|
69
|
+
"BaseJobParametersParams",
|
|
70
|
+
"BulkJobCallbackParams",
|
|
71
|
+
"BulkJobInitResponseV1Params",
|
|
58
72
|
"ChatCompletionRequestAssistantMessageParams",
|
|
59
73
|
"ChatCompletionRequestMessageParams",
|
|
60
74
|
"ChatCompletionRequestMessage_AssistantParams",
|
|
@@ -77,11 +91,17 @@ __all__ = [
|
|
|
77
91
|
"ErrorResponseDataParams",
|
|
78
92
|
"ErrorResponseParams",
|
|
79
93
|
"EventsDataParams",
|
|
94
|
+
"FileSignedUrlDetailsParams",
|
|
95
|
+
"FilesDownloadResponseParams",
|
|
96
|
+
"FilesRequestParams",
|
|
97
|
+
"FilesUploadResponseParams",
|
|
80
98
|
"FlushSignalParams",
|
|
99
|
+
"JobStatusV1Params",
|
|
81
100
|
"LanguageIdentificationResponseParams",
|
|
82
101
|
"PingSignalParams",
|
|
83
102
|
"SendTextDataParams",
|
|
84
103
|
"SendTextParams",
|
|
104
|
+
"SpeechToTextJobParametersParams",
|
|
85
105
|
"SpeechToTextResponseDataParams",
|
|
86
106
|
"SpeechToTextResponseParams",
|
|
87
107
|
"SpeechToTextStreamingResponseParams",
|
|
@@ -91,6 +111,8 @@ __all__ = [
|
|
|
91
111
|
"SpeechToTextTranslateStreamingResponseParams",
|
|
92
112
|
"SpeechToTextTranslateTranscriptionDataParams",
|
|
93
113
|
"StopConfigurationParams",
|
|
114
|
+
"TaskDetailV1Params",
|
|
115
|
+
"TaskFileDetailsParams",
|
|
94
116
|
"TextToSpeechResponseParams",
|
|
95
117
|
"TimestampsModelParams",
|
|
96
118
|
"TranscriptionMetricsParams",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing_extensions
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class BulkJobCallbackParams(typing_extensions.TypedDict):
|
|
7
|
+
url: str
|
|
8
|
+
"""
|
|
9
|
+
Webhook url to call upon job completion
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
auth_token: typing_extensions.NotRequired[str]
|
|
13
|
+
"""
|
|
14
|
+
Authorization token required for the callback Url
|
|
15
|
+
"""
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing_extensions
|
|
4
|
+
from ..types.job_state import JobState
|
|
5
|
+
from ..types.storage_container_type import StorageContainerType
|
|
6
|
+
from .base_job_parameters import BaseJobParametersParams
|
|
7
|
+
from .bulk_job_callback import BulkJobCallbackParams
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class BulkJobInitResponseV1Params(typing_extensions.TypedDict):
|
|
11
|
+
job_id: str
|
|
12
|
+
"""
|
|
13
|
+
Job UUID.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
storage_container_type: StorageContainerType
|
|
17
|
+
"""
|
|
18
|
+
Storage Container Type
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
job_parameters: BaseJobParametersParams
|
|
22
|
+
job_state: JobState
|
|
23
|
+
owner_id: str
|
|
24
|
+
callback: typing_extensions.NotRequired[BulkJobCallbackParams]
|
|
25
|
+
"""
|
|
26
|
+
Parameters for callback URL
|
|
27
|
+
"""
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import typing_extensions
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FileSignedUrlDetailsParams(typing_extensions.TypedDict):
|
|
9
|
+
file_url: str
|
|
10
|
+
file_metadata: typing_extensions.NotRequired[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import typing_extensions
|
|
6
|
+
from ..types.job_state import JobState
|
|
7
|
+
from ..types.storage_container_type import StorageContainerType
|
|
8
|
+
from .file_signed_url_details import FileSignedUrlDetailsParams
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class FilesDownloadResponseParams(typing_extensions.TypedDict):
|
|
12
|
+
job_id: str
|
|
13
|
+
job_state: JobState
|
|
14
|
+
download_urls: typing.Dict[str, FileSignedUrlDetailsParams]
|
|
15
|
+
storage_container_type: StorageContainerType
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import typing_extensions
|
|
6
|
+
from ..types.job_state import JobState
|
|
7
|
+
from ..types.storage_container_type import StorageContainerType
|
|
8
|
+
from .file_signed_url_details import FileSignedUrlDetailsParams
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class FilesUploadResponseParams(typing_extensions.TypedDict):
|
|
12
|
+
job_id: str
|
|
13
|
+
job_state: JobState
|
|
14
|
+
upload_urls: typing.Dict[str, FileSignedUrlDetailsParams]
|
|
15
|
+
storage_container_type: StorageContainerType
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import typing_extensions
|
|
6
|
+
from ..types.job_state import JobState
|
|
7
|
+
from ..types.storage_container_type import StorageContainerType
|
|
8
|
+
from .task_detail_v_1 import TaskDetailV1Params
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class JobStatusV1Params(typing_extensions.TypedDict):
|
|
12
|
+
job_state: JobState
|
|
13
|
+
"""
|
|
14
|
+
Job State
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
created_at: str
|
|
18
|
+
"""
|
|
19
|
+
Created At
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
updated_at: str
|
|
23
|
+
"""
|
|
24
|
+
Updated At
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
job_id: str
|
|
28
|
+
"""
|
|
29
|
+
Job Id
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
total_files: typing_extensions.NotRequired[int]
|
|
33
|
+
"""
|
|
34
|
+
Total Files
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
successful_files_count: typing_extensions.NotRequired[int]
|
|
38
|
+
"""
|
|
39
|
+
Success Count
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
failed_files_count: typing_extensions.NotRequired[int]
|
|
43
|
+
"""
|
|
44
|
+
Failed Count
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
owner_id: str
|
|
48
|
+
"""
|
|
49
|
+
Owner of the job
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
storage_container_type: StorageContainerType
|
|
53
|
+
"""
|
|
54
|
+
Storage Container Type
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
error_message: typing_extensions.NotRequired[str]
|
|
58
|
+
"""
|
|
59
|
+
Error Message
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
job_details: typing_extensions.NotRequired[typing.Sequence[TaskDetailV1Params]]
|
|
63
|
+
"""
|
|
64
|
+
Job details at file level.
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
num_internal_retries: typing_extensions.NotRequired[int]
|
|
68
|
+
"""
|
|
69
|
+
Number of internal retries
|
|
70
|
+
"""
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing_extensions
|
|
4
|
+
from ..types.speech_to_text_model import SpeechToTextModel
|
|
5
|
+
from ..types.speech_to_text_translate_language import SpeechToTextTranslateLanguage
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SpeechToTextJobParametersParams(typing_extensions.TypedDict):
|
|
9
|
+
language_code: typing_extensions.NotRequired[SpeechToTextTranslateLanguage]
|
|
10
|
+
"""
|
|
11
|
+
Language code
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
model: typing_extensions.NotRequired[SpeechToTextModel]
|
|
15
|
+
"""
|
|
16
|
+
Model to be used for speech to text
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
with_timestamps: typing_extensions.NotRequired[bool]
|
|
20
|
+
"""
|
|
21
|
+
Whether to include timestamps in the response
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
with_diarization: typing_extensions.NotRequired[bool]
|
|
25
|
+
"""
|
|
26
|
+
Enables speaker diarization, which identifies and separates different speakers in the audio. In beta mode
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
num_speakers: typing_extensions.NotRequired[int]
|
|
30
|
+
"""
|
|
31
|
+
Number of speakers to be detected in the audio. This is used when with_diarization is true.
|
|
32
|
+
"""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import typing_extensions
|
|
6
|
+
from ..types.task_state import TaskState
|
|
7
|
+
from .task_file_details import TaskFileDetailsParams
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TaskDetailV1Params(typing_extensions.TypedDict):
|
|
11
|
+
inputs: typing_extensions.NotRequired[typing.Sequence[TaskFileDetailsParams]]
|
|
12
|
+
outputs: typing_extensions.NotRequired[typing.Sequence[TaskFileDetailsParams]]
|
|
13
|
+
state: typing_extensions.NotRequired[TaskState]
|
|
14
|
+
error_message: typing_extensions.NotRequired[str]
|
|
15
|
+
exception_name: typing_extensions.NotRequired[str]
|
|
@@ -15,7 +15,6 @@ from ..errors.internal_server_error import InternalServerError
|
|
|
15
15
|
from ..errors.service_unavailable_error import ServiceUnavailableError
|
|
16
16
|
from ..errors.too_many_requests_error import TooManyRequestsError
|
|
17
17
|
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
18
|
-
from ..types.error_message import ErrorMessage
|
|
19
18
|
from ..types.speech_to_text_language import SpeechToTextLanguage
|
|
20
19
|
from ..types.speech_to_text_model import SpeechToTextModel
|
|
21
20
|
from ..types.speech_to_text_response import SpeechToTextResponse
|
|
@@ -159,9 +158,9 @@ class RawSpeechToTextClient:
|
|
|
159
158
|
raise ServiceUnavailableError(
|
|
160
159
|
headers=dict(_response.headers),
|
|
161
160
|
body=typing.cast(
|
|
162
|
-
|
|
161
|
+
typing.Optional[typing.Any],
|
|
163
162
|
parse_obj_as(
|
|
164
|
-
type_=
|
|
163
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
165
164
|
object_=_response.json(),
|
|
166
165
|
),
|
|
167
166
|
),
|
|
@@ -297,9 +296,9 @@ class RawSpeechToTextClient:
|
|
|
297
296
|
raise ServiceUnavailableError(
|
|
298
297
|
headers=dict(_response.headers),
|
|
299
298
|
body=typing.cast(
|
|
300
|
-
|
|
299
|
+
typing.Optional[typing.Any],
|
|
301
300
|
parse_obj_as(
|
|
302
|
-
type_=
|
|
301
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
303
302
|
object_=_response.json(),
|
|
304
303
|
),
|
|
305
304
|
),
|
|
@@ -443,9 +442,9 @@ class AsyncRawSpeechToTextClient:
|
|
|
443
442
|
raise ServiceUnavailableError(
|
|
444
443
|
headers=dict(_response.headers),
|
|
445
444
|
body=typing.cast(
|
|
446
|
-
|
|
445
|
+
typing.Optional[typing.Any],
|
|
447
446
|
parse_obj_as(
|
|
448
|
-
type_=
|
|
447
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
449
448
|
object_=_response.json(),
|
|
450
449
|
),
|
|
451
450
|
),
|
|
@@ -581,9 +580,9 @@ class AsyncRawSpeechToTextClient:
|
|
|
581
580
|
raise ServiceUnavailableError(
|
|
582
581
|
headers=dict(_response.headers),
|
|
583
582
|
body=typing.cast(
|
|
584
|
-
|
|
583
|
+
typing.Optional[typing.Any],
|
|
585
584
|
parse_obj_as(
|
|
586
|
-
type_=
|
|
585
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
587
586
|
object_=_response.json(),
|
|
588
587
|
),
|
|
589
588
|
),
|