Streamline your form-filling processes with Voiceform Fill, a package designed to convert voice input into structured, formatted text. This tool is ideal for applications where hands-free data entry is necessary, such as surveys, customer feedback forms, or any scenario where users need to quickly and accurately input information without typing.
pip install voiceform_fillfrom voiceform_fill import voiceform_fill
user_input = "example text"
api_key = None
llm = None
response = voiceform_fill(user_input=user_input, api_key=api_key, llm=llm)Optional Parameters
user_input: str - the user input text to processllm: Optional[BaseChatModel] - the langchain llm instance to use, if not provided the default ChatLLM7 will be usedapi_key: Optional[str] - the api key for llm7, if not provided the default LLM7 key will be used from the environment variableLLM7_API_KEYor a default key will be used
Customizing LLM
For advanced use cases, you can safely pass your own llm instance (based on https://docs.langchain.com/) by passing it like voiceform_fill(... llm=their_llm_instance), for example to use the openai (https://docs.langchain.com/providers/openai):
from langchain_openai import ChatOpenAI
from voiceform_fill import voiceform_fill
llm = ChatOpenAI()
response = voiceform_fill(user_input="example text", llm=llm)or to use the anthropic (https://docs.langchain.com/providers/anthropic):
from langchain_anthropic import ChatAnthropic
from voiceform_fill import voiceform_fill
llm = ChatAnthropic()
response = voiceform_fill(user_input="example text", llm=llm)or google (https://docs.langchain.com/providers/google):
from langchain_google_genai import ChatGoogleGenerativeAI
from voiceform_fill import voiceform_fill
llm = ChatGoogleGenerativeAI()
response = voiceform_fill(user_input="example text", llm=llm)LLM Rate Limits
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you want higher rate limits for LLM7, you can pass your own api_key via environment variable LLM7_API_KEY or by passing it directly like voiceform_fill(... api_key="their_api_key"). You can get a free api_key by registering at https://token.llm7.io/
This package's issues can be found at: https://github.com/chigwell/voiceform-fill
Eugene Evstafev hi@euegne.plus