Formal:
* Je ne parle que le français. (This is the most literal translation and sounds very formal.)
* Je parle uniquement français. (This is also very formal and emphasizes "only".)
Informal:
* Je parle juste français. (This means "I only speak French" and sounds more casual.)
* Je suis francophone. (This means "I am a French speaker" and is a more common way to say it.)
Adding context:
* Je ne parle pas anglais, juste français. (This means "I don't speak English, just French" and adds specific context.)
* Je comprends un peu d'anglais, mais je ne parle que français. (This means "I understand a little English, but I only speak French" and clarifies your language skills.)
The best way to say it depends on the specific context and the person you are talking to.