Formal:
* Ṣé o mọ̀ Yorùbá? (She o mo Yoruba?) - This is the most formal way to ask. It literally translates to "Do you know Yoruba?" but is understood as asking about speaking ability.
Informal:
* O mọ̀ Yorùbá bí? (O mo Yoruba bi?) - This is a more casual way to ask, literally translating to "Do you know Yoruba like this?"
Even more informal:
* O gbọ́ Yorùbá? (O gbo Yoruba?) - This is the most casual way to ask, literally translating to "Do you understand Yoruba?"
Using the verb "sọ" (to speak):
You could also use the verb "sọ" (to speak) in your question, although it's less common:
* Ṣé o sọ Yorùbá? (She o so Yoruba?) - "Do you speak Yoruba?"
Note: The tone and intonation will also play a role in how formal or informal your question sounds.